diff --git a/src/engine/net/client/handlers/ChangeAltitudeHandler.java b/src/engine/net/client/handlers/ChangeAltitudeHandler.java index cdc2ea99..d46742c8 100644 --- a/src/engine/net/client/handlers/ChangeAltitudeHandler.java +++ b/src/engine/net/client/handlers/ChangeAltitudeHandler.java @@ -47,13 +47,16 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler { if (pc.region != null && !pc.region.isOutside()) return false; - // Find out if we already have an altitude timer running and if so // do not process more alt change requests + pc.updateFlight(); + if (pc.getTakeOffTime() != 0) return false; + pc.setTakeOffTime(System.currentTimeMillis()); + // remove all movement timers and jobs //TODO: test if they can fly