1
0
鏡像自 https://github.com/luanti-org/luanti.git 已同步 2025-11-09 03:25:28 +01:00

Fix compile on certain Linux configurations, reduce spawn point height

此提交包含在:
kwolekr
2013-01-18 16:35:34 -05:00
提交者 Perttu Ahola
父節點 278d93a3ee
當前提交 318669327e
共有 2 個檔案被更改,包括 2 行新增1 行删除

查看文件

@@ -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++){