- fixed: P_DamageMobj should clear reactiontime only for non-players.

For players this variable has an entirely different meaning which does not agree with being modified here.
This commit is contained in:
Christoph Oelckers 2018-11-01 09:27:38 +01:00 committed by drfrag666
parent 3e4f1ea813
commit 9410e5ea98

View file

@ -1588,7 +1588,7 @@ dopain:
}
}
//ALLOWPAIN and CAUSEPAIN can still trigger infighting, even if no pain state is worked out.
target->reactiontime = 0; // we're awake now...
if (target->player == nullptr) target->reactiontime = 0; // we're awake now...
if (source)
{
if (source == target->target)