Don't dump ghost points if map isn't detected
authorunc0rr
Tue, 01 Mar 2016 08:32:46 +0300
changeset 11585 026c329b1a13
parent 11584 f1cf921cf456
child 11586 2963c85c6de4
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 Mar 01 00:41:38 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Tue Mar 01 08:32:46 2016 +0300
@@ -793,7 +793,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 Mar 01 00:41:38 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue Mar 01 08:32:46 2016 +0300
@@ -1292,7 +1292,7 @@
         end
     end
 
-    if fastCount > 0 then
+    if map ~= nil and fastCount > 0 then
         StartGhostPoints(fastCount)
 
         for i = 0, (fastCount - 1) do