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

- Cleanup message and logic.
- Fix ConvertSecondsToTime logic for milliseconds.
- Add ConvertMillisecondsToTime inline function.
This commit is contained in:
Kinglykrab authored and GitHub committed 2021-11-21 10:03:20 -05:00
1 parent 7154d5b841
commit 40edefa6f4
7 files changed
+50 -21

No files matched your search

+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,