From 2383016b1d673fcf0ad69a08bba62d7ce36cdd76 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 30 Nov 2013 14:22:26 +0100 Subject: Added the real tick duration to the OnWorldTick hook. --- src/Plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Plugin.h') diff --git a/src/Plugin.h b/src/Plugin.h index 06e5819df..ec55e256d 100644 --- a/src/Plugin.h +++ b/src/Plugin.h @@ -94,7 +94,7 @@ public: virtual bool OnUpdatingSign (cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4, cPlayer * a_Player) = 0; virtual bool OnWeatherChanged (cWorld & a_World) = 0; virtual bool OnWeatherChanging (cWorld & a_World, eWeather & a_NewWeather) = 0; - virtual bool OnWorldTick (cWorld & a_World, float a_Dt) = 0; + virtual bool OnWorldTick (cWorld & a_World, float a_Dt, int a_LastTickDurationMSec) = 0; /** Handles the command split into a_Split, issued by player a_Player. Command permissions have already been checked. -- cgit v1.2.3