From 97412b41696f45127e3dad614517619bd058f9b3 Mon Sep 17 00:00:00 2001 From: andrei-pmbcn Date: Sun, 28 Aug 2016 18:26:09 +0300 Subject: [PATCH] Fixed the bug that prevented restarting a script more than once after unpausing. Resolves #1023. --- evennia/scripts/scripts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/evennia/scripts/scripts.py b/evennia/scripts/scripts.py index 9123a8f0a..7f44a2379 100644 --- a/evennia/scripts/scripts.py +++ b/evennia/scripts/scripts.py @@ -395,6 +395,11 @@ class DefaultScript(ScriptBase): # if this script was paused manually (by a direct call of pause), # it cannot be automatically unpaused (e.g. by a @reload) raise RuntimeError + + # Ensure that the script is fully unpaused, so that future calls + # to unpause do not raise a RuntimeError + self.db._manual_pause = False + if self.db._paused_time: # only unpause if previously paused self.is_active = True