1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-21 13:53:06 +00:00

CLEANUP: Fix docs, remove unused lambda capture

This commit is contained in:
Dave Corley 2025-10-07 19:16:00 -05:00 committed by Alexei Kotov
parent 209b7fd5c6
commit 386c28d98e
2 changed files with 2 additions and 1 deletions

View file

@ -63,7 +63,7 @@ namespace MWLua
Misc::NotNullPtr<MWBase::World> world = MWBase::Environment::get().getWorld();
MWWorld::DateTimeManager* timeManager = world->getTimeManager();
api["advanceTime"] = [context, world](const FiniteFloat hours) {
api["advanceTime"] = [world](const FiniteFloat hours) {
if (hours <= 0.0f)
throw std::runtime_error("Time may only be advanced forward");

View file

@ -208,5 +208,6 @@
---
-- Advance the world time by a certain number of hours. This advances time, weather, and AI, but does not perform other functions associated with the passage of time, eg regeneration.
-- @function [parent=#world] advanceTime
-- @param #number hours Number of hours to advance time
return nil