mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Ignore mercs away on minievents for food status updates (#322)
This commit is contained in:
+3
-1
@@ -364,7 +364,9 @@ void ReduceBPRegenForHunger( SOLDIERTYPE *pSoldier, INT32 *psPoints )
|
|||||||
|
|
||||||
void HourlyFoodSituationUpdate( SOLDIERTYPE *pSoldier )
|
void HourlyFoodSituationUpdate( SOLDIERTYPE *pSoldier )
|
||||||
{
|
{
|
||||||
if ( !pSoldier )
|
// A merc away on a minievent assignment is ignored since we cannot control their food or water intake.
|
||||||
|
// Without this they would end up losing stats and/or dying during long event assignments, which would lead to the game crashing when death occurs.
|
||||||
|
if ( !pSoldier || pSoldier->bAssignment == ASSIGNMENT_MINIEVENT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// determine our current activity level
|
// determine our current activity level
|
||||||
|
|||||||
Reference in New Issue
Block a user