]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
Added Quake2 BSP support (IBSP38), this is a work in progress.
[xonotic/darkplaces.git] / cl_main.c
index 2ae4f860a40b7a033c15b8bfe40823c04ddab344..51a02ffb7b62ed9a71b159b272c90f36e66d3a43 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1586,6 +1586,10 @@ static void CL_RelinkWorld(void)
        CL_UpdateRenderEntity(&ent->render);
        r_refdef.scene.worldentity = &ent->render;
        r_refdef.scene.worldmodel = cl.worldmodel;
+
+       // if the world is q2bsp, animate the textures
+       if (ent->render.model && ent->render.model->brush.isq2bsp)
+               ent->render.framegroupblend[0].frame = (int)(cl.time * 2.0f);
 }
 
 static void CL_RelinkStaticEntities(void)