project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 4510 ce9b8206e681
parent 4504 8906b2409d97
child 4540 9b614e420de5
--- a/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Sat Dec 11 23:28:52 2010 +0300
+++ b/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Sun Dec 12 05:23:37 2010 +0100
@@ -122,8 +122,10 @@
     GameSetup *setup = [[GameSetup alloc] initWithDictionary:gameDictionary];
     NSNumber *isNetGameNum = [gameDictionary objectForKey:@"netgame"];
     
-    if ([isNetGameNum boolValue] == NO)
-        [setup startThread:@"engineProtocol"];
+    [setup startThread:@"engineProtocol"];
+    if ([isNetGameNum boolValue] == YES)
+        [setup startThread:@"serverProtocol"];
+
     const char **gameArgs = [setup getSettings:[gameDictionary objectForKey:@"savefile"]];
     NSNumber *menuStyle = [NSNumber numberWithBool:setup.menuStyle];
     [setup release];