diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-30 17:36:16 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-30 17:36:16 -0300 |
| commit | 8adb2da8c3c5c25ff32eae80a59781290fc2cfcf (patch) | |
| tree | e71f826c35d598f1880342c3fa991151e4711a42 /src | |
| parent | ae47fb12e6121c57c9229f599ef48986a5a46fe7 (diff) | |
| download | game-8adb2da8c3c5c25ff32eae80a59781290fc2cfcf.tar.gz game-8adb2da8c3c5c25ff32eae80a59781290fc2cfcf.zip | |
fix `SearchSpawnField` not properly expanding - might fix #10
Diffstat (limited to 'src')
| -rw-r--r-- | src/info.cc | 2 |
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; |
