- set correct exit codes (for tomreyn)

- fix loading when too many units on map (do not segfault)
- deprecate ThreadedNetworkClient setting
This commit is contained in:
Mark Vejvoda
2012-07-17 23:04:30 +00:00
parent 25a4b83b83
commit 9f0546c008
6 changed files with 144 additions and 95 deletions

View File

@@ -509,13 +509,13 @@ int mainSetup(int argc, char **argv) {
// Use this for masterserver mode for timers like Chrono
if(SDL_Init(SDL_INIT_TIMER) < 0) {
std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n";
return 1;
return 3;
}
}
else {
if(SDL_Init(SDL_INIT_EVERYTHING) < 0) {
std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n";
return 1;
return 3;
}
SDL_EnableUNICODE(1);
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);