hedgewars/hwengine.pas
changeset 3711 de3b3df215c3
parent 3709 c7849b74748d
child 3739 97cf933e5bd2
--- a/hedgewars/hwengine.pas	Mon Aug 02 23:15:22 2010 +0200
+++ b/hedgewars/hwengine.pas	Mon Aug 02 23:15:34 2010 +0200
@@ -315,7 +315,7 @@
 begin
     Randomize();
 
-    uConsts.initModule;
+    // uConsts does not need initialization as they are all consts
     uMisc.initModule;
     uConsole.initModule;    // MUST happen after uMisc
 
@@ -386,7 +386,6 @@
 
     uConsole.freeModule;
     uMisc.freeModule;           // uMisc closes the debug log.
-    uConsts.freeModule;         //stub
 end;
 
 /////////////////////////
@@ -446,7 +445,7 @@
         if (ParamCount = 3) then
             internalSetGameTypeLandPreviewFromParameters()
         else
-            if (ParamCount = 18) then
+            if (ParamCount = cDefaultParamNum) then
                 internalStartGameWithParameters()
             else
                 playReplayFileWithParameters();