Skip to content
Open
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
4 changes: 4 additions & 0 deletions Core/GameEngine/Include/Common/GameDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#define PRESERVE_BUILDING_RESUMPTION_DELAY (0) // The fix for this unfavorable behavior was approved by the Game Design Committee.
#endif

#ifndef PRESERVE_CARGO_PLANE_ATTACK_WARNINGS
#define PRESERVE_CARGO_PLANE_ATTACK_WARNINGS (0)
#endif

#ifndef PRESERVE_CHINOOK_PASSENGER_DUMPING
#define PRESERVE_CHINOOK_PASSENGER_DUMPING (1)
#endif
Expand Down
6 changes: 5 additions & 1 deletion Generals/Code/GameEngine/Source/GameLogic/Object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,11 @@ void Object::attemptDamage( DamageInfo *damageInfo )
damageInfo->in.m_damageType != DAMAGE_HEALING &&
!BitIsSet(damageInfo->in.m_sourcePlayerMask, getControllingPlayer()->getPlayerMask()) &&
m_radarData != nullptr &&
isLocallyControlled() )
isLocallyControlled()
#if !PRESERVE_CARGO_PLANE_ATTACK_WARNINGS
&& getTemplate()->getName() != "AmericaJetCargoPlane"
#endif
)
TheRadar->tryUnderAttackEvent( this );

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,11 @@ void Object::attemptDamage( DamageInfo *damageInfo )
getControllingPlayer() &&
!BitIsSet(damageInfo->in.m_sourcePlayerMask, getControllingPlayer()->getPlayerMask()) &&
m_radarData != nullptr &&
isLocallyControlled() )
isLocallyControlled()
#if !PRESERVE_CARGO_PLANE_ATTACK_WARNINGS
&& getTemplate()->getName() != "AmericaJetCargoPlane"
#endif
)
TheRadar->tryUnderAttackEvent( this );

}
Expand Down
Loading