Oops. More like this. (initEverything was being called for Game() and preview in non-iphone already)
--- 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();