[Commands] Cleanup #camerashake Command. (#1787)

- Cleanup message and logic.
- Fix ConvertSecondsToTime logic for milliseconds.
- Add ConvertMillisecondsToTime inline function.
This commit is contained in:
Kinglykrab
2021-11-21 10:03:20 -05:00
committed by GitHub
parent 7154d5b841
commit 40edefa6f4
7 changed files with 50 additions and 21 deletions
+1 -1
View File
@@ -826,7 +826,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
}
ServerUptime_Struct* sus = (ServerUptime_Struct*)pack->pBuffer;
uint32 ms = Timer::GetCurrentTime();
std::string time_string = ConvertSecondsToTime(ms);
std::string time_string = ConvertMillisecondsToTime(ms);
SendEmoteMessage(
sus->adminname,
0,