Skip to content

Commit 878a846

Browse files
committed
feat: Pressing H now navigates to the observed player's Command Center
1 parent 9debcee commit 878a846

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)