mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Fix: disease notification should not be visible to the player
- Fix: disease infection happened even though disease feaure was off - Disease Improvement: infection chance by corpse is now affected by age of corpse git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7486 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -390,6 +390,9 @@ void HandleDisease()
|
||||
// chance gets modified by aModifier (contextual modifier)
|
||||
void HandlePossibleInfection( SOLDIERTYPE *pSoldier, SOLDIERTYPE* pOtherSoldier, UINT8 aInfectionType, FLOAT aModifier, BOOLEAN fStrategicOnly )
|
||||
{
|
||||
if ( !gGameExternalOptions.fDisease )
|
||||
return;
|
||||
|
||||
// only for living mercs with a profile with a valid infection method
|
||||
if ( !pSoldier || pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE || pSoldier->ubProfile == NO_PROFILE || aInfectionType >= INFECTION_TYPE_MAX )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user