Skip to content

Commit

Permalink
reorder conditional to disallow stop command for "movable" buildings …
Browse files Browse the repository at this point in the history
…(MCV plus things with rally points) during (de)construction.
  • Loading branch information
ChthonVII committed Mar 20, 2024
1 parent aad880d commit 032882c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions TIBERIANDAWN/DLLInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7094,13 +7094,8 @@ void DLLExportClass::Selected_Stop(uint64 player_id)
//if (tech && (tech->Can_Player_Move() || (tech->Can_Player_Fire() &&
// tech->What_Am_I() != RTTI_BUILDING))) {
if ( tech &&
( tech->Can_Player_Move() ||
( tech->Can_Player_Fire() &&
( (tech->What_Am_I() != RTTI_BUILDING) ||
((BuildingClass*)tech) -> CanAcceptStopOrder()
)
)
)
(tech->Can_Player_Move() || tech->Can_Player_Fire()) &&
((tech->What_Am_I() != RTTI_BUILDING) || ((BuildingClass*)tech) -> CanAcceptStopOrder())
) {
OutList.Add(EventClass(EventClass::IDLE, tech->As_Target()));
}
Expand Down

0 comments on commit 032882c

Please sign in to comment.