mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 17:49:42 +00:00
[Client] Make player inventory items recharge by themselves again
This fixes 4476609872
.
This commit is contained in:
parent
cf4ff3513f
commit
6875c3422f
2 changed files with 11 additions and 10 deletions
|
@ -384,16 +384,7 @@ bool OMW::Engine::frame(float frametime)
|
|||
{
|
||||
double hours = (frametime * mEnvironment.getWorld()->getTimeScaleFactor()) / 3600.0;
|
||||
mEnvironment.getWorld()->advanceTime(hours, true);
|
||||
|
||||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
Don't unilaterally recharge world items on clients
|
||||
*/
|
||||
//mEnvironment.getWorld()->rechargeItems(frametime, true);
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
mEnvironment.getWorld()->rechargeItems(frametime, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3916,6 +3916,12 @@ namespace MWWorld
|
|||
MWWorld::Ptr player = getPlayerPtr();
|
||||
player.getClass().getInventoryStore(player).rechargeItems(duration);
|
||||
|
||||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
Don't unilaterally recharge world items on clients
|
||||
*/
|
||||
/*
|
||||
if (activeOnly)
|
||||
{
|
||||
for (auto &cell : mWorldScene->getActiveCells())
|
||||
|
@ -3925,6 +3931,10 @@ namespace MWWorld
|
|||
}
|
||||
else
|
||||
mCells.recharge(duration);
|
||||
*/
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
}
|
||||
|
||||
void World::teleportToClosestMarker (const MWWorld::Ptr& ptr,
|
||||
|
|
Loading…
Reference in a new issue