mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Merge pull request #10559 from Discover-/Taxi-Benchmarking
Core/Misc: Implement CMSG_SET_TAXI_BENCHMARK_MODE to toggle PLAYER_FLAGS...
This commit is contained in:
@@ -1613,9 +1613,13 @@ void WorldSession::HandleRequestPetInfoOpcode(WorldPacket& /*recvData */)
|
||||
|
||||
void WorldSession::HandleSetTaxiBenchmarkOpcode(WorldPacket& recvData)
|
||||
{
|
||||
TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: CMSG_SET_TAXI_BENCHMARK_MODE");
|
||||
|
||||
uint8 mode;
|
||||
recvData >> mode;
|
||||
|
||||
mode ? _player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_TAXI_BENCHMARK) : _player->RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_TAXI_BENCHMARK);
|
||||
|
||||
TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "Client used \"/timetest %d\" command", mode);
|
||||
}
|
||||
|
||||
|
||||
@@ -218,6 +218,8 @@ void FlightPathMovementGenerator::DoFinalize(Player* player)
|
||||
// when client side flight end early in comparison server side
|
||||
player->StopMoving();
|
||||
}
|
||||
|
||||
player->RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_TAXI_BENCHMARK);
|
||||
}
|
||||
|
||||
#define PLAYER_FLIGHT_SPEED 32.0f
|
||||
|
||||
Reference in New Issue
Block a user