diff options
author | kwolekr <mirrorisim@gmail.com> | 2013-01-18 16:35:34 -0500 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:37 +0200 |
commit | 318669327e84d8fc7498e32c5bacfad658d8ba87 (patch) | |
tree | b6cbc7d5229b4ce7cb69f6383ca89cceeddd2fb2 /src | |
parent | 278d93a3eefcc4e1735cd2fee0528118c78e3526 (diff) | |
download | minetest-318669327e84d8fc7498e32c5bacfad658d8ba87.tar.gz minetest-318669327e84d8fc7498e32c5bacfad658d8ba87.tar.bz2 minetest-318669327e84d8fc7498e32c5bacfad658d8ba87.zip |
Fix compile on certain Linux configurations, reduce spawn point height
Diffstat (limited to 'src')
-rw-r--r-- | src/porting.h | 1 | ||||
-rw-r--r-- | src/server.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/porting.h b/src/porting.h index 0062c11f3..184e1ab54 100644 --- a/src/porting.h +++ b/src/porting.h @@ -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) diff --git a/src/server.cpp b/src/server.cpp index 70f71e3fb..d227474aa 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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++){ |