mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
[Client] Add forgotten comparison in crimeTime and deathTime check
This commit is contained in:
parent
4eb72eecb1
commit
e3e1cfc549
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user