fix for flying bug
This commit is contained in:
@@ -47,13 +47,16 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
|
|||||||
if (pc.region != null && !pc.region.isOutside())
|
if (pc.region != null && !pc.region.isOutside())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
// Find out if we already have an altitude timer running and if so
|
// Find out if we already have an altitude timer running and if so
|
||||||
// do not process more alt change requests
|
// do not process more alt change requests
|
||||||
|
|
||||||
|
pc.updateFlight();
|
||||||
|
|
||||||
if (pc.getTakeOffTime() != 0)
|
if (pc.getTakeOffTime() != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
pc.setTakeOffTime(System.currentTimeMillis());
|
||||||
|
|
||||||
|
|
||||||
// remove all movement timers and jobs
|
// remove all movement timers and jobs
|
||||||
//TODO: test if they can fly
|
//TODO: test if they can fly
|
||||||
|
|||||||
Reference in New Issue
Block a user