equal
deleted
inserted
replaced
120 |
120 |
121 // pull out useful configuration info from various files |
121 // pull out useful configuration info from various files |
122 GameSetup *setup = [[GameSetup alloc] initWithDictionary:gameDictionary]; |
122 GameSetup *setup = [[GameSetup alloc] initWithDictionary:gameDictionary]; |
123 NSNumber *isNetGameNum = [gameDictionary objectForKey:@"netgame"]; |
123 NSNumber *isNetGameNum = [gameDictionary objectForKey:@"netgame"]; |
124 |
124 |
125 if ([isNetGameNum boolValue] == NO) |
125 [setup startThread:@"engineProtocol"]; |
126 [setup startThread:@"engineProtocol"]; |
126 if ([isNetGameNum boolValue] == YES) |
|
127 [setup startThread:@"serverProtocol"]; |
|
128 |
127 const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]]; |
129 const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]]; |
128 NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle]; |
130 NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle]; |
129 [setup release]; |
131 [setup release]; |
130 |
132 |
131 // since the sdlwindow is not yet created, we add the overlayController with a delay |
133 // since the sdlwindow is not yet created, we add the overlayController with a delay |