Skip to content

Commit 3cf6ad5

Browse files
committed
docs: Add comments
1 parent 0cbfcf9 commit 3cf6ad5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,6 +3427,8 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
34273427
Drawable *draw = TheTacticalView->pickDrawable(&msg->getArgument(0)->pixelRegion.lo,
34283428
TheInGameUI->isInForceAttackMode(),
34293429
(PickType) pickType);
3430+
3431+
// TheSuperHackers @bugfix Stubbjax 07/08/2025 Prevent dead units blocking positional context commands
34303432
Object* obj = draw ? draw->getObject() : NULL;
34313433
if (!obj || (obj->isEffectivelyDead() && !obj->isKindOf(KINDOF_ALWAYS_SELECTABLE)))
34323434
{
@@ -3486,6 +3488,8 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
34863488
Drawable *draw = TheTacticalView->pickDrawable(&msg->getArgument(0)->pixelRegion.lo,
34873489
TheInGameUI->isInForceAttackMode(),
34883490
(PickType) pickType);
3491+
3492+
// TheSuperHackers @bugfix Stubbjax 07/08/2025 Prevent dead units blocking positional context commands
34893493
Object* obj = draw ? draw->getObject() : NULL;
34903494
if (!obj || (obj->isEffectivelyDead() && !obj->isKindOf(KINDOF_ALWAYS_SELECTABLE)))
34913495
{

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3795,6 +3795,8 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
37953795
Drawable *draw = TheTacticalView->pickDrawable(&msg->getArgument(0)->pixelRegion.lo,
37963796
TheInGameUI->isInForceAttackMode(),
37973797
(PickType) pickType);
3798+
3799+
// TheSuperHackers @bugfix Stubbjax 07/08/2025 Prevent dead units blocking positional context commands
37983800
Object* obj = draw ? draw->getObject() : NULL;
37993801
if (!obj || (obj->isEffectivelyDead() && !obj->isKindOf(KINDOF_ALWAYS_SELECTABLE)))
38003802
{
@@ -3872,6 +3874,8 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
38723874
Drawable *draw = TheTacticalView->pickDrawable(&msg->getArgument(0)->pixelRegion.lo,
38733875
TheInGameUI->isInForceAttackMode(),
38743876
(PickType) pickType);
3877+
3878+
// TheSuperHackers @bugfix Stubbjax 07/08/2025 Prevent dead units blocking positional context commands
38753879
Object* obj = draw ? draw->getObject() : NULL;
38763880
if (!obj || (obj->isEffectivelyDead() && !obj->isKindOf(KINDOF_ALWAYS_SELECTABLE)))
38773881
{

0 commit comments

Comments
 (0)