From ce3cf322eb0b0f034a3437ea92d5c4f1f9f9de00 Mon Sep 17 00:00:00 2001 From: cavesomething Date: Sat, 15 May 2010 21:39:30 +0000 Subject: [PATCH] Make quest pre-conditions work correctly with ranges of stages git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13236 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/dialog/pre/quest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/dialog/pre/quest.py b/python/dialog/pre/quest.py index d2e8029e8..37c068a57 100644 --- a/python/dialog/pre/quest.py +++ b/python/dialog/pre/quest.py @@ -31,8 +31,8 @@ if stage.find("-") == -1: startstep = int(stage) endstep = -1 else: - startstep = int(condition.split("-")[0]) - endstep= int(condition.split("-")[1]) + startstep = int(stage.split("-")[0]) + endstep= int(stage.split("-")[1]) currentstep = character.QuestGetState(questname) if currentstep < startstep: