CTF/Control: Fix incomplete hedgehog loop bounds
authorWuzzy <Wuzzy2@mail.ru>
Fri, 07 Jun 2019 15:09:42 +0200
changeset 15151 13e7d4eccb67
parent 15150 a41b8b154f74
child 15152 a77b0e339929
CTF/Control: Fix incomplete hedgehog loop bounds
share/hedgewars/Data/Maps/Control/map.lua
share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
--- a/share/hedgewars/Data/Maps/Control/map.lua	Fri Jun 07 15:08:06 2019 +0200
+++ b/share/hedgewars/Data/Maps/Control/map.lua	Fri Jun 07 15:09:42 2019 +0200
@@ -334,7 +334,7 @@
 		end
 	end
 
-	for h=1, numhhs do
+	for h=0, numhhs-1 do
 		-- Tardis screws up the game too much, teams might not get killed correctly after victory
 		-- if a hog is still in time-travel.
 		-- This could be fixed, removing the Tardis is just a simple and lazy fix.
--- a/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Fri Jun 07 15:08:06 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Fri Jun 07 15:09:42 2019 +0200
@@ -524,7 +524,7 @@
 		fCaptures[i] = 0
 	end
 
-	for h=1, numhhs do
+	for h=0, numhhs-1 do
 		-- Hogs are resurrected for free, so this is pointless
 		AddAmmo(hhs[h], amResurrector, 0)
 		-- Remove suicidal weapons as they might wipe out the team