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:
Nay committed 2013-08-23 17:57:21 -07:00
commit 0d5181af4d
2 files changed
+6

No files matched your search

+4
View File
@@ -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