hedgewars/hwengine.pas
changeset 3078 07d4ca3afce3
parent 3064 7458ec3666c3
child 3153 adfe8a91658f
--- a/hedgewars/hwengine.pas	Fri Mar 26 15:52:47 2010 +0000
+++ b/hedgewars/hwengine.pas	Fri Mar 26 15:55:20 2010 +0000
@@ -577,15 +577,11 @@
     GetParams();
     Randomize();
 
-    if GameType = gmtLandPreview then
-        begin
-        GenLandPreview();
-        freeEverything(); 
-        end
+    if GameType = gmtLandPreview then GenLandPreview()
     else if GameType = gmtSyntax then DisplayUsage()
     else Game();
     
-    freeEverything;
+    freeEverything();
     if GameType = gmtSyntax then
         ExitCode:= 1
     else