hedgewars/uLand.pas
changeset 10603 bda5c7caf396
parent 10490 b30b8d39d662
child 10626 2562797ab3cf
--- a/hedgewars/uLand.pas	Tue Dec 02 12:02:20 2014 +0300
+++ b/hedgewars/uLand.pas	Tue Dec 02 13:29:06 2014 -0500
@@ -672,10 +672,10 @@
 begin
     WriteLnToConsole('Generating preview...');
     case cMapGen of
-        0: GenTemplated(EdgeTemplates[SelectTemplate]);
-        1: begin ResizeLand(4096,2048); GenMaze; end;
-        2: begin ResizeLand(4096,2048); GenPerlin; end;
-        3: GenDrawnMap;
+        mgRandom: GenTemplated(EdgeTemplates[SelectTemplate]);
+        mgMaze: begin ResizeLand(4096,2048); GenMaze; end;
+        mgPerlin: begin ResizeLand(4096,2048); GenPerlin; end;
+        mgDrawn: GenDrawnMap;
     else
         OutError('Unknown mapgen', true);
     end;
@@ -720,10 +720,10 @@
 begin
     WriteLnToConsole('Generating preview...');
     case cMapGen of
-        0: GenTemplated(EdgeTemplates[SelectTemplate]);
-        1: begin ResizeLand(4096,2048); GenMaze; end;
-        2: begin ResizeLand(4096,2048); GenPerlin; end;
-        3: GenDrawnMap;
+        mgRandom: GenTemplated(EdgeTemplates[SelectTemplate]);
+        mgMaze: begin ResizeLand(4096,2048); GenMaze; end;
+        mgPerlin: begin ResizeLand(4096,2048); GenPerlin; end;
+        mgDrawn: GenDrawnMap;
     else
         OutError('Unknown mapgen', true);
     end;