1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

server starting on port 0 on invalid settings

This commit is contained in:
Perttu Ahola 2010-12-22 17:58:02 +02:00
parent 3de176cc58
commit 58ccc68c81
6 changed files with 35 additions and 10 deletions

View file

@ -158,10 +158,17 @@ inline bool is_ground_content(u8 m)
m == CONTENT_GRASS ||
m == CONTENT_GRASS_FOOTSTEPS ||
m == CONTENT_MESE ||
m == CONTENT_MUD
m == CONTENT_MUD ||
m == CONTENT_COALSTONE
);
}
inline bool is_mineral(u8 c)
{
return(c == CONTENT_MESE
|| c == CONTENT_COALSTONE);
}
/*inline bool content_has_faces(u8 c)
{
return (m != CONTENT_IGNORE