mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-05 20:53:52 +00:00
fix: misleading indentation on PLAYER_ALIVE/PLAYER_UNGHOST event emits
The emit calls were indented at a level suggesting they were outside the if/else blocks, but braces placed them inside. Fixed to match the actual control flow, preventing a future maintainer from "correcting" the indentation and accidentally changing the logic.
This commit is contained in:
parent
ec24bcd910
commit
b3abf04dbb
1 changed files with 2 additions and 2 deletions
|
|
@ -757,11 +757,11 @@ EntityController::UnitFieldUpdateResult EntityController::applyUnitFieldsOnUpdat
|
|||
owner_.playerDead_ = false;
|
||||
if (!wasGhost) {
|
||||
LOG_INFO("Player resurrected!");
|
||||
pendingEvents_.emit("PLAYER_ALIVE", {});
|
||||
pendingEvents_.emit("PLAYER_ALIVE", {});
|
||||
} else {
|
||||
LOG_INFO("Player entered ghost form");
|
||||
owner_.releasedSpirit_ = false;
|
||||
pendingEvents_.emit("PLAYER_UNGHOST", {});
|
||||
pendingEvents_.emit("PLAYER_UNGHOST", {});
|
||||
}
|
||||
}
|
||||
if ((entity->getType() == ObjectType::UNIT || entity->getType() == ObjectType::PLAYER) && owner_.npcRespawnCallback_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue