hedgewars/hwengine.pas
changeset 3709 c7849b74748d
parent 3697 d5b30d6373fc
child 3739 97cf933e5bd2
--- a/hedgewars/hwengine.pas	Mon Aug 02 15:23:16 2010 +0200
+++ b/hedgewars/hwengine.pas	Mon Aug 02 18:13:29 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();