Skip to content

Commit 636c40f

Browse files
authored
tweak(command): Allow observer to view the Hero unit of the currently observed player with a button press (#1525)
The command to view the Hero unit is bound to key CTRL+H by default
1 parent 22623db commit 636c40f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ void amIAHero(Object* obj, void* heroHolder)
926926

927927
static Object *iNeedAHero( void )
928928
{
929-
Player* localPlayer = ThePlayerList->getLocalPlayer();
929+
Player* localPlayer = TheControlBar->getCurrentlyViewedPlayer();
930930
if (!localPlayer)
931931
return NULL;
932932

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ void amIAHero(Object* obj, void* heroHolder)
985985

986986
static Object *iNeedAHero( void )
987987
{
988-
Player* localPlayer = ThePlayerList->getLocalPlayer();
988+
Player* localPlayer = TheControlBar->getCurrentlyViewedPlayer();
989989
if (!localPlayer)
990990
return NULL;
991991

0 commit comments

Comments
 (0)