extensive changes
authormikade <redgrinner@gmail.com>
Thu, 14 May 2015 23:09:21 +0900
changeset 10946 c6cf08ee999e
parent 10945 2570fcfddf2a
child 10947 bb5f9dc79a6b
extensive changes
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed May 13 23:01:00 2015 +0900
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Thu May 14 23:09:21 2015 +0900
@@ -1,5 +1,5 @@
 ------------------------------------------
--- TECH RACER v0.5
+-- TECH RACER v0.6
 -----------------------------------------
 
 --------------
@@ -42,6 +42,11 @@
 --------------
 -- migrated maps to an external script
 
+--------------
+--0.6
+--------------
+-- move 1 line of code :D (allows loading of HWMAP points to actually work)
+
 -----------------------------
 -- SCRIPT BEGINS
 -----------------------------
@@ -582,6 +587,8 @@
 	-- the creation stage, place girders and needed gears, grant ammo
 	elseif activationStage == 2 then
 
+		InterpretPoints()
+
 		-- these are from onParameters()
 		if (mapID == nil) or (mapID == 0) then
 			LoadMap(2000)
@@ -840,9 +847,7 @@
         lastRound = TotalRounds
         RoundHasChanged = false -- true
 
-        InterpretPoints()
-
-        RebuildTeamInfo()
+	    RebuildTeamInfo()
 
 		for i=0 , TeamsCount - 1 do
 			cnthhs = 0