Browse Source

fix for flying bug

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
fbd910ef50
  1. 5
      src/engine/net/client/handlers/ChangeAltitudeHandler.java

5
src/engine/net/client/handlers/ChangeAltitudeHandler.java

@ -47,13 +47,16 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler { @@ -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

Loading…
Cancel
Save