From e59667ec6be0a21ce702ce077154357a1c7f7c04 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 27 Jun 2025 18:57:29 -0300 Subject: `moveuse.cc` --- src/crnonpl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/crnonpl.cc') diff --git a/src/crnonpl.cc b/src/crnonpl.cc index 3d43012..b05a5e5 100644 --- a/src/crnonpl.cc +++ b/src/crnonpl.cc @@ -1747,7 +1747,7 @@ void TNPC::IdleStimulus(void){ return; } - bool FoundDest = false; + bool DestFound = false; int DestX, DestY, DestZ; for(int i = 0; i < 10; i += 1){ DestX = this->posx; @@ -1761,12 +1761,12 @@ void TNPC::IdleStimulus(void){ } if(this->MovePossible(DestX, DestY, DestZ, true, false)){ - FoundDest = true; + DestFound = true; break; } } - if(FoundDest){ + if(DestFound){ try{ this->ToDoGo(DestX, DestY, DestZ, true, INT_MAX); this->ToDoWait(2000); -- cgit v1.2.3