mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10202] Rename isInFlight() to IsTaxiFlying() and UNIT_STAT_IN_FLIGHT to UNIT_STAT_TAXI_FLIGHT.
Also add IsFreeFlying() function to Player class.
This commit is contained in:
parent
e47e9a2218
commit
01d326b90d
25 changed files with 68 additions and 67 deletions
|
|
@ -310,7 +310,7 @@ void FlightPathMovementGenerator::Initialize(Player &player)
|
|||
void FlightPathMovementGenerator::Finalize(Player & player)
|
||||
{
|
||||
// remove flag to prevent send object build movement packets for flight state and crash (movement generator already not at top of stack)
|
||||
player.clearUnitState(UNIT_STAT_IN_FLIGHT);
|
||||
player.clearUnitState(UNIT_STAT_TAXI_FLIGHT);
|
||||
|
||||
float x, y, z;
|
||||
i_destinationHolder.GetLocationNow(player.GetBaseMap(), x, y, z);
|
||||
|
|
@ -334,13 +334,13 @@ void FlightPathMovementGenerator::Finalize(Player & player)
|
|||
|
||||
void FlightPathMovementGenerator::Interrupt(Player & player)
|
||||
{
|
||||
player.clearUnitState(UNIT_STAT_IN_FLIGHT);
|
||||
player.clearUnitState(UNIT_STAT_TAXI_FLIGHT);
|
||||
}
|
||||
|
||||
void FlightPathMovementGenerator::Reset(Player & player)
|
||||
{
|
||||
player.getHostileRefManager().setOnlineOfflineState(false);
|
||||
player.addUnitState(UNIT_STAT_IN_FLIGHT);
|
||||
player.addUnitState(UNIT_STAT_TAXI_FLIGHT);
|
||||
player.SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_TAXI_FLIGHT);
|
||||
Traveller<Player> traveller(player);
|
||||
// do not send movement, it was sent already
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue