1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

[Client] Add forgotten comparison in crimeTime and deathTime check

This commit is contained in:
David Cernat 2018-07-06 20:49:08 +03:00
parent 4eb72eecb1
commit e3e1cfc549

View file

@ -1202,7 +1202,7 @@ namespace MWMechanics
*/
else if (mwmp::Main::get().getLocalPlayer()->diedSinceArrestAttempt && creatureStats.getAiSequence().isInCombat(player))
{
if (difftime(mwmp::Main::get().getLocalPlayer()->deathTime, npcStats.getCrimeTime()))
if (difftime(mwmp::Main::get().getLocalPlayer()->deathTime, npcStats.getCrimeTime()) > 0)
{
creatureStats.getAiSequence().stopCombat();
creatureStats.setAttacked(false);