Don't dump ghost points if map isn't detected 0.9.22
authorunc0rr
Tue, 01 Mar 2016 08:32:46 +0300
branch0.9.22
changeset 12372 3e4044f959a9
parent 12371 744e51920a04
child 12373 1e7a50e91d0c
Don't dump ghost points if map isn't detected
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Tue Feb 23 13:45:49 2016 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Tue Mar 01 08:32:46 2016 +0300
@@ -783,7 +783,7 @@
         end
     end
 
-    if fastCount > 0 then
+    if map ~= nil and fastCount > 0 then
         StartGhostPoints(fastCount)
 
         for i = 0, (fastCount - 1) do
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue Feb 23 13:45:49 2016 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue Mar 01 08:32:46 2016 +0300
@@ -1278,7 +1278,7 @@
         end
     end
 
-    if fastCount > 0 then
+    if map ~= nil and fastCount > 0 then
         StartGhostPoints(fastCount)
 
         for i = 0, (fastCount - 1) do