mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix compile on certain Linux configurations, reduce spawn point height
This commit is contained in:
@@ -50,6 +50,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#define strtoull(x, y, z) _strtoui64(x, y, z)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <stdint.h> //for uintptr_t
|
||||
|
||||
#define ALIGNOF(x) __alignof__(x)
|
||||
#define sleep_ms(x) usleep(x*1000)
|
||||
|
@@ -4879,7 +4879,7 @@ v3f findSpawnPos(ServerMap &map)
|
||||
continue;
|
||||
}
|
||||
|
||||
nodepos = v3s16(nodepos2d.X, groundheight+1, nodepos2d.Y);
|
||||
nodepos = v3s16(nodepos2d.X, groundheight-2, nodepos2d.Y);
|
||||
bool is_good = false;
|
||||
s32 air_count = 0;
|
||||
for(s32 i=0; i<10; i++){
|
||||
|
Reference in New Issue
Block a user