mdl_load_animation_block( meta, world->heap );
mdl_load_mesh_block( meta, world->heap );
+ vg_info( "%u\n", sizeof(ent_cubemap) );
+
MDL_LOAD_ARRAY( meta, &world->ent_gate, ent_gate, heap );
MDL_LOAD_ARRAY( meta, &world->ent_camera, ent_camera, heap );
MDL_LOAD_ARRAY( meta, &world->ent_spawn, ent_spawn, heap );
world->info.pstr_desc = 0;
world->info.pstr_name = 0;
world->info.timezone = 0.0f;
+ world->info.flags = 0;
}
time_t seconds = time(NULL) % ((u32)vg_maxf(1.0f,k_day_length)*60);
glDeleteTextures( 1, &world->tex_light_cubes );
/* delete textures and meshes */
- glDeleteTextures( world->texture_count, world->textures );
+ glDeleteTextures( world->texture_count-1, world->textures+1 );
u32 world_index = world - world_static.instances;
if( world_index ){