project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 11572 28afdaa159cb
parent 11555 b96080df19d0
child 12872 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Feb 24 00:10:12 2016 +0100
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Feb 24 00:33:10 2016 +0100
@@ -277,8 +277,9 @@
                 // seed info
                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
 
-                // missions/tranings only need the script configuration set and seed
-                if ([HWUtils gameType] == gtMission)
+                // missions/tranings/campaign only need the script configuration set and seed
+                TGameType currentGameType = [HWUtils gameType];
+                if (currentGameType == gtMission || currentGameType == gtCampaign)
                     break;
                 
                 // dimension of the map