- 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
parent aa69d63a65
commit 9df7ce1f9a
1 changed files with 1 additions and 1 deletions

View File

@ -1583,7 +1583,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)