Fixed translation bug in about and campaign chooser.
This commit is contained in:
parent
fc88150432
commit
30df2a8e78
1 changed files with 6 additions and 18 deletions
24
src/game.cpp
24
src/game.cpp
|
@ -1647,19 +1647,17 @@ int play_game(int argc, char** argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
res = game.init_config();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize game config\n";
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
res = game.init_language();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize the language\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
res = game.init_config();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize game config\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
res = font::load_font_config();
|
||||
if(res == false) {
|
||||
|
@ -1667,16 +1665,6 @@ int play_game(int argc, char** argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
// it is better for gettext-native platforms to read the config
|
||||
// files after having pre-initialized the language, maybe...
|
||||
res = game.init_config();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize game config\n";
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
const cursor::manager cursor_manager;
|
||||
#if defined(_X11) && !defined(__APPLE__)
|
||||
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
|
||||
|
|
Loading…
Add table
Reference in a new issue