From 7d298e5a4119df0910daa070af1d23567a83e90c Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 12 Jun 2025 04:16:16 -0300 Subject: more work on `operate.cc` --- src/cract.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cract.cc') diff --git a/src/cract.cc b/src/cract.cc index 325fbdc..15fdf66 100644 --- a/src/cract.cc +++ b/src/cract.cc @@ -986,10 +986,10 @@ void TCreature::ToDoWait(int Delay){ } void TCreature::ToDoGo(int DestX, int DestY, int DestZ, bool MustReach, int MaxSteps){ - if(this->posz < DestZ){ - throw DOWNSTAIRS; - }else if(this->posz > DestZ){ + if(this->posz > DestZ){ throw UPSTAIRS; + }else if(this->posz < DestZ){ + throw DOWNSTAIRS; } if(this->LockToDo){ -- cgit v1.2.3