share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 5923 ae8cfd039ab2
parent 5902 486f84a45805
child 6253 d73317579ae4
equal deleted inserted replaced
5922:7e7774e7be8c 5923:ae8cfd039ab2
   494 		DeleteGear(cGear)
   494 		DeleteGear(cGear)
   495 
   495 
   496 		if TestRectForObstacle(x-20, y-20, x+20, y+20, true) then
   496 		if TestRectForObstacle(x-20, y-20, x+20, y+20, true) then
   497 			AddCaption(loc("Please place the way-point in the open, within the map boundaries."))
   497 			AddCaption(loc("Please place the way-point in the open, within the map boundaries."))
   498 			PlaySound(sndDenied)
   498 			PlaySound(sndDenied)
       
   499 		elseif (y > WaterLine-50) then
       
   500 			AddCaption(loc("Please place the way-point further from the waterline."))
       
   501 			PlaySound(sndDenied)
   499 		else
   502 		else
   500 			PlaceWayPoint(x, y)
   503 			PlaceWayPoint(x, y)
   501 			if wpCount == wpLimit then
   504 			if wpCount == wpLimit then
   502 				AddCaption(loc("Race complexity limit reached."))
   505 				AddCaption(loc("Race complexity limit reached."))
   503 				DisableTumbler()
   506 				DisableTumbler()