# HG changeset patch # User mikade # Date 1316130341 -7200 # Node ID ae8cfd039ab2e81dc7032e068c8b6bf0428eec1d # Parent 7e7774e7be8c366d64e2439f970a24f3f5fdaecf check waterline diff -r 7e7774e7be8c -r ae8cfd039ab2 share/hedgewars/Data/Scripts/Multiplayer/Racer.lua --- 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