Restrict how high saucer can fly for sanity's sake
authornemo
Mon, 12 Oct 2009 19:33:21 +0000
changeset 2433 332287d62c81
parent 2432 1a0bb82d55f0
child 2434 5faa05d99241
Restrict how high saucer can fly for sanity's sake
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Mon Oct 12 16:58:05 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Mon Oct 12 19:33:21 2009 +0000
@@ -2311,6 +2311,8 @@
 
 if (HHGear^.Message and gm_Up) <> 0 then
     begin
+    if (not HHGear^.dY.isNegative) or (HHGear^.Y > -_256) then
+        HHGear^.dY:= HHGear^.dY - move;
     HHGear^.dY:= HHGear^.dY - move;
     dec(Gear^.Health, fuel);
     Gear^.MsgParam:= Gear^.MsgParam or gm_Up;