From c393f70638794f4c2e7c5bd42ace2a448cae4fe4 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 20 Aug 2015 22:14:04 +0200 Subject: [PATCH] Fixed regression error in script force_repeat. Resolves #785. --- evennia/scripts/scripts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/evennia/scripts/scripts.py b/evennia/scripts/scripts.py index 6a8fe0f66c..fcc9c47a8c 100644 --- a/evennia/scripts/scripts.py +++ b/evennia/scripts/scripts.py @@ -109,10 +109,11 @@ class ExtendedLoopingCall(LoopingCall): """ assert self.running, ("Tried to fire an ExtendedLoopingCall " "that was not running.") - if self.call is not None: - self.call.cancel() - self.call.callback() - self() + self.call.cancel() + self.call = None + self.starttime = self.clock.seconds() + self() + def next_call_time(self): """