# HG changeset patch # User nemo # Date 1320945601 18000 # Node ID 12567f6f6f0214e25ffa04193b34674963c56b2b # Parent 658055a3f1600f3de416179f53887271d1d0f0fd Make mazes filter use same variable as template filter diff -r 658055a3f160 -r 12567f6f6f02 hedgewars/uCommandHandlers.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); diff -r 658055a3f160 -r 12567f6f6f02 hedgewars/uLand.pas --- 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; diff -r 658055a3f160 -r 12567f6f6f02 hedgewars/uVariables.pas --- 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;