mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 16:50:15 +00:00
refactor: extract guidToUnitId/getQuestTitle helpers and misc cleanup
- Extract guidToUnitId(), getQuestTitle(), findQuestLogEntry() helpers to replace 14 duplicated GUID-to-unitId patterns and 7 quest log search patterns in game_handler.cpp - Remove duplicate #include in renderer.cpp - Remove commented-out model cleanup code in terrain_manager.cpp - Replace C-style casts with static_cast in auth and transport code
This commit is contained in:
parent
087e42d7a1
commit
98b9e502c5
7 changed files with 57 additions and 124 deletions
|
|
@ -391,10 +391,10 @@ void AuthHandler::handleRealmListResponse(network::Packet& packet) {
|
|||
LOG_INFO(" Address: ", realm.address);
|
||||
LOG_INFO(" ID: ", (int)realm.id);
|
||||
LOG_INFO(" Population: ", realm.population);
|
||||
LOG_INFO(" Characters: ", (int)realm.characters);
|
||||
LOG_INFO(" Characters: ", static_cast<int>(realm.characters));
|
||||
if (realm.hasVersionInfo()) {
|
||||
LOG_INFO(" Version: ", (int)realm.majorVersion, ".",
|
||||
(int)realm.minorVersion, ".", (int)realm.patchVersion,
|
||||
LOG_INFO(" Version: ", static_cast<int>(realm.majorVersion), ".",
|
||||
static_cast<int>(realm.minorVersion), ".", static_cast<int>(realm.patchVersion),
|
||||
" (build ", realm.build, ")");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue