Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Generals/Code/GameEngine/Source/Common/RTS/ActionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,16 @@ Bool ActionManager::canResumeConstructionOf( const Object *obj,
return FALSE;

// TheSuperHackers @bugfix Stubbjax 06/01/2025 Ensure only the owner of the construction can resume it.
#if RETAIL_COMPATIBLE_CRC
Relationship r = obj->getRelationship(objectBeingConstructed);

// only available to our allies
if( r != ALLIES )
return FALSE;
#else
if (obj->getControllingPlayer() != objectBeingConstructed->getControllingPlayer())
return FALSE;
#endif

// if the objectBeingConstructed is not actually under construction we can't resume that!
if( !objectBeingConstructed->getStatusBits().test( OBJECT_STATUS_UNDER_CONSTRUCTION ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,16 @@ Bool ActionManager::canResumeConstructionOf( const Object *obj,
return FALSE;

// TheSuperHackers @bugfix Stubbjax 06/01/2025 Ensure only the owner of the construction can resume it.
#if RETAIL_COMPATIBLE_CRC
Relationship r = obj->getRelationship(objectBeingConstructed);

// only available to our allies
if( r != ALLIES )
return FALSE;
#else
if (obj->getControllingPlayer() != objectBeingConstructed->getControllingPlayer())
return FALSE;
#endif

// if the objectBeingConstructed is not actually under construction we can't resume that!
if( !objectBeingConstructed->getStatusBits().test( OBJECT_STATUS_UNDER_CONSTRUCTION ) )
Expand Down
Loading