share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 10611 58cad46782ff
parent 10596 75b5b674387a
child 10630 08d0cacf2aec
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue Dec 02 22:11:22 2014 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue Dec 02 23:33:28 2014 +0100
@@ -1103,32 +1103,6 @@
 	mapID = params["m"]
 end
 
-PointsBuffer = ''  -- A string to accumulate points in
-
-function AddPoint(x, y, width, erase)
- PointsBuffer = PointsBuffer .. string.char(band(x,0xff00) / 256 , band(x,0xff) , band(y,0xff00) / 256 , band(y,0xff))
- if width then
-     width = bor(width,0x80)
-     if erase then
-         width = bor(width,0x40)
-     end
-     PointsBuffer = PointsBuffer .. string.char(width)
- else
-     PointsBuffer = PointsBuffer .. string.char(0)
- end
- if #PointsBuffer > 245 then
-     ParseCommand('draw '..PointsBuffer)
-     PointsBuffer = ''
- end
-end
-
-function FlushPoints()
- if #PointsBuffer > 0 then
-     ParseCommand('draw '..PointsBuffer)
-     PointsBuffer = ''
- end
-end
-
 function onPreviewInit()
 	onGameInit()
 end