Make mazes filter use same variable as template filter
authornemo
Thu, 10 Nov 2011 12:20:01 -0500
changeset 6313 12567f6f6f02
parent 6312 658055a3f160
child 6314 b4fc5b863f5f
Make mazes filter use same variable as template filter
hedgewars/uCommandHandlers.pas
hedgewars/uLand.pas
hedgewars/uVariables.pas
--- a/hedgewars/uCommandHandlers.pas	Wed Nov 09 22:21:05 2011 -0500
+++ b/hedgewars/uCommandHandlers.pas	Thu Nov 10 12:20:01 2011 -0500
@@ -615,7 +615,7 @@
     RegisterVariable('seed'    , vtCommand, @chSetSeed      , false);
     RegisterVariable('template_filter', vtLongInt, @cTemplateFilter, false);
     RegisterVariable('mapgen'  , vtLongInt, @cMapGen        , false);
-    RegisterVariable('maze_size',vtLongInt, @cMazeSize      , false);
+    RegisterVariable('maze_size',vtLongInt, @cTemplateFilter, false);
     RegisterVariable('delay'   , vtLongInt, @cInactDelay    , false);
     RegisterVariable('ready'   , vtLongInt, @cReadyDelay    , false);
     RegisterVariable('casefreq', vtLongInt, @cCaseFactor    , false);
--- a/hedgewars/uLand.pas	Wed Nov 09 22:21:05 2011 -0500
+++ b/hedgewars/uLand.pas	Thu Nov 10 12:20:01 2011 -0500
@@ -856,7 +856,7 @@
 end;
 
 begin
-case cMazeSize of
+case cTemplateFilter of
     0: begin
         cellsize := small_cell_size;
         maze_inverted := false;
--- a/hedgewars/uVariables.pas	Wed Nov 09 22:21:05 2011 -0500
+++ b/hedgewars/uVariables.pas	Thu Nov 10 12:20:01 2011 -0500
@@ -85,7 +85,6 @@
     cMineDudPercent : LongWord;
     cTemplateFilter : LongInt;
     cMapGen         : LongInt;
-    cMazeSize       : LongInt;
     cRopePercent    : LongWord;
     cGetAwayTime    : LongWord;
 
@@ -2462,7 +2461,6 @@
     cMineDudPercent     := 0;
     cTemplateFilter     := 0;
     cMapGen             := 0;   // MAPGEN_REGULAR
-    cMazeSize           := 0;
     cHedgehogTurnTime   := 45000;
     cMinesTime          := 3000;
     cMaxAIThinkTime     := 9000;