aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-30 17:36:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-30 17:36:16 -0300
commit8adb2da8c3c5c25ff32eae80a59781290fc2cfcf (patch)
treee71f826c35d598f1880342c3fa991151e4711a42
parentae47fb12e6121c57c9229f599ef48986a5a46fe7 (diff)
downloadgame-8adb2da8c3c5c25ff32eae80a59781290fc2cfcf.tar.gz
game-8adb2da8c3c5c25ff32eae80a59781290fc2cfcf.zip
fix `SearchSpawnField` not properly expanding - might fix #10
-rw-r--r--src/info.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/info.cc b/src/info.cc
index b507395..5578fd7 100644
--- a/src/info.cc
+++ b/src/info.cc
@@ -1000,6 +1000,7 @@ bool SearchSpawnField(int *x, int *y, int *z, int Distance, bool Player){
}
}
}
+ Expanded = true;
}
if(LoginPossible && (!Player || !IsNoLogoutField(FieldX, FieldY, FieldZ))){
@@ -1009,6 +1010,7 @@ bool SearchSpawnField(int *x, int *y, int *z, int Distance, bool Player){
}
if(TieBreaker > BestTieBreaker){
+ Found = true;
BestX = FieldX;
BestY = FieldY;
BestTieBreaker = TieBreaker;