Oops. Restore the check as well
authornemo
Sat, 30 Oct 2010 22:53:23 -0400
changeset 4043 4bf039d637df
parent 4042 dfeb8e348a09
child 4044 de7170e51cc6
Oops. Restore the check as well
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Oct 30 22:48:05 2010 -0400
+++ b/hedgewars/uGears.pas	Sat Oct 30 22:53:23 2010 -0400
@@ -1203,13 +1203,12 @@
 
 if ((GameFlags and gfForts) = 0) then
     begin
-    // TODO: exclude each other or allow both, mines and explosives, on same map?
-    for i:= 0 to Pred(cLandMines) do
-        begin
-        Gear:= AddGear(0, 0, gtMine, 0, _0, _0, 0);
-        FindPlace(Gear, false, 0, LAND_WIDTH);
-        end;
-    // No game flag for this for now
+    if ((GameFlags and gfMines) <> 0) then
+        for i:= 0 to Pred(cLandMines) do
+            begin
+            Gear:= AddGear(0, 0, gtMine, 0, _0, _0, 0);
+            FindPlace(Gear, false, 0, LAND_WIDTH);
+            end;
     for i:= 0 to Pred(cExplosives) do
         begin
         Gear:= AddGear(0, 0, gtExplosives, 0, _0, _0, 0);