1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 10:06:42 +00:00

Fixes #845: NPCs hold torches during the day

Added check for Player character so it won't be affected by showing,
or hidding torches.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
Lukasz Gromanowski 2013-12-20 01:01:30 +01:00
parent 6eb674e4e5
commit abc126e2af

View file

@ -709,6 +709,8 @@ bool CharacterController::updateNpcState(bool onground, bool inwater, bool isrun
}
}
if (mPtr.getRefData().getHandle() != "player")
{
if (MWBase::Environment::get().getWorld()->isNight())
{
MWWorld::ContainerStoreIterator item = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
@ -750,7 +752,7 @@ bool CharacterController::updateNpcState(bool onground, bool inwater, bool isrun
}
}
}
}
return forcestateupdate;
}