share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 5923 ae8cfd039ab2
parent 5902 486f84a45805
child 6253 d73317579ae4
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Fri Sep 16 01:12:57 2011 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Fri Sep 16 01:45:41 2011 +0200
@@ -496,6 +496,9 @@
 		if TestRectForObstacle(x-20, y-20, x+20, y+20, true) then
 			AddCaption(loc("Please place the way-point in the open, within the map boundaries."))
 			PlaySound(sndDenied)
+		elseif (y > WaterLine-50) then
+			AddCaption(loc("Please place the way-point further from the waterline."))
+			PlaySound(sndDenied)
 		else
 			PlaceWayPoint(x, y)
 			if wpCount == wpLimit then