aboutsummaryrefslogtreecommitdiff
path: root/src/crnonpl.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-27 18:57:29 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-27 18:57:29 -0300
commite59667ec6be0a21ce702ce077154357a1c7f7c04 (patch)
tree8222cce37f8dbf1694cffa138c0bb0ad6b893bf3 /src/crnonpl.cc
parentea319bc2fbef91e3ea062be554b215756648d1d3 (diff)
downloadgame-e59667ec6be0a21ce702ce077154357a1c7f7c04.tar.gz
game-e59667ec6be0a21ce702ce077154357a1c7f7c04.zip
`moveuse.cc`
Diffstat (limited to 'src/crnonpl.cc')
-rw-r--r--src/crnonpl.cc6
1 files changed, 3 insertions, 3 deletions
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);