mini world rendering adjustments
[carveJwlIkooP6JGAAIwe30JlM.git] / entity.h
index 72a666744a4d30bd264b03615e924ac5206a7bf9..cab16c84ee2bb11ebbf075e5eaa94de58d6a1453 100644 (file)
--- a/entity.h
+++ b/entity.h
@@ -59,7 +59,7 @@ enum entity_alias{
 };
 
 static u32 mdl_entity_id_type( u32 entity_id ){
-   return (entity_id & 0xffff0000) >> 16;
+   return (entity_id & 0x0fff0000) >> 16;
 }
 
 static u32 mdl_entity_id_id( u32 entity_id ){
@@ -373,6 +373,7 @@ struct ent_menuitem{
 struct ent_worldinfo{
    u32 pstr_name, pstr_author, pstr_desc;
    f32 timezone;
+   u32 pstr_skybox;
 };
 
 static ent_marker *ent_find_marker( mdl_context *mdl,