[Client] Add forgotten comparison in crimeTime and deathTime check

0.6.3
David Cernat 7 years ago
parent 4eb72eecb1
commit e3e1cfc549

@ -1202,7 +1202,7 @@ namespace MWMechanics
*/ */
else if (mwmp::Main::get().getLocalPlayer()->diedSinceArrestAttempt && creatureStats.getAiSequence().isInCombat(player)) 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.getAiSequence().stopCombat();
creatureStats.setAttacked(false); creatureStats.setAttacked(false);

Loading…
Cancel
Save