Skip to content

Commit 8341ac5

Browse files
committed
tweak: Use new utility logic
1 parent 2324788 commit 8341ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
3232

3333
#include "Common/GameAudio.h"
34+
#include "Common/GameUtility.h"
3435
#include "Common/GlobalData.h"
3536
#include "Common/INI.h"
3637
#include "Common/Player.h"
@@ -550,7 +551,7 @@ void SpecialPowerModule::aboutToDoSpecialPower( const Coord3D *location )
550551
// Let EVA do her thing
551552
SpecialPowerType type = getSpecialPowerModuleData()->m_specialPowerTemplate->getSpecialPowerType();
552553

553-
Player *localPlayer = TheControlBar->getCurrentlyViewedPlayer();
554+
Player *localPlayer = rts::getObservedOrLocalPlayer();
554555
Relationship relationship = TheControlBar->getCurrentlyViewedPlayerRelationship(getObject()->getTeam());
555556

556557
// Only play the EVA sounds if this is not the local player, and the local player doesn't consider the

0 commit comments

Comments
 (0)