Oops. More like this. (initEverything was being called for Game() and preview in non-iphone already)
authornemo
Mon, 22 Mar 2010 18:02:39 +0000
changeset 3047 2847f4f2ce67
parent 3046 d54b2c718971
child 3048 755f484d0f62
Oops. More like this. (initEverything was being called for Game() and preview in non-iphone already)
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Mon Mar 22 17:59:59 2010 +0000
+++ b/hedgewars/hwengine.pas	Mon Mar 22 18:02:39 2010 +0000
@@ -226,7 +226,7 @@
     s: shortstring;
 begin
 {$IFDEF HWLIBRARY}
-    initEverything();
+    // initEverything();
     Randomize();
 
     cBits:= 32;
@@ -572,11 +572,8 @@
 
     if GameType = gmtLandPreview then
         begin
-{$IFDEF HWLIBRARY}
-        // initEverything();   TODO - Koda, please check to see if this is appropriate here
-{$ENDIF}
         GenLandPreview();
-        // freeEverything()    TODO - Koda, please check if this is also needed here. 
+        // freeEverything()    TODO - Koda, please check if this is needed here. 
         end
     else if GameType = gmtSyntax then DisplayUsage()
     else Game();