From a5c62045ed5e47710ce47175cb1c3b3b2da4cdec Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 25 Dec 2010 02:48:17 +0200 Subject: slight map generation bugs --- src/main.cpp | 2 +- src/mapnode.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index d50491a4b..03d194d71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2353,7 +2353,7 @@ int main(int argc, char *argv[]) i != chat_lines.end(); i++) { (*i).age += dtime; - if((*i).age > 30.0) + if((*i).age > 60.0) { to_be_removed_count++; continue; diff --git a/src/mapnode.h b/src/mapnode.h index 659d585b5..c61732922 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -155,12 +155,16 @@ inline bool content_buildable_to(u8 m) */ inline bool is_ground_content(u8 m) { - return (m != CONTENT_WATER + return ( + m != CONTENT_IGNORE + && m != CONTENT_AIR + && m != CONTENT_WATER && m != CONTENT_TORCH && m != CONTENT_TREE && m != CONTENT_LEAVES && m != CONTENT_OCEAN - && m != CONTENT_CLOUD); + && m != CONTENT_CLOUD + ); } inline bool is_mineral(u8 c) -- cgit v1.2.3