Skip to content

Commit 0609129

Browse files
authored
tweak(command): Allow observer to view the Command Center of the currently observed player with a button press (#1524)
The command to view the Command Center is bound to key H by default
1 parent 7e87594 commit 0609129

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
@@ -884,7 +884,7 @@ void findCommandCenterOrMostExpensiveBuilding(Object* obj, void* vccl)
884884

885885
static void viewCommandCenter( void )
886886
{
887-
Player* localPlayer = ThePlayerList->getLocalPlayer();
887+
Player* localPlayer = TheControlBar->getCurrentlyViewedPlayer();
888888
if (!localPlayer)
889889
return;
890890

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void findCommandCenterOrMostExpensiveBuilding(Object* obj, void* vccl)
943943

944944
static void viewCommandCenter( void )
945945
{
946-
Player* localPlayer = ThePlayerList->getLocalPlayer();
946+
Player* localPlayer = TheControlBar->getCurrentlyViewedPlayer();
947947
if (!localPlayer)
948948
return;
949949

0 commit comments

Comments
 (0)