Use the new NoPointX global in HedgeEditor
authorWuzzy <Wuzzy2@mail.ru>
Thu, 02 Aug 2018 01:52:01 +0200
changeset 13601 7699987d9f70
parent 13600 0adc82afb784
child 13602 f7cbf7d8298d
Use the new NoPointX global in HedgeEditor
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Thu Aug 02 01:45:45 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Thu Aug 02 01:52:01 2018 +0200
@@ -2861,7 +2861,7 @@
 
 -- Display the X and Y coordinates of the cursor while the cursor is active
 function updateCursorCoords()
-	if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= -2147483648 then
+	if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NoPoitX then
 		local x1, y = 12, 24
 		if tagCursorX then
 			DeleteVisualGear(tagCursorX)