]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
q1bsp: Warn if an animated texture has exactly one frame.
[xonotic/darkplaces.git] / model_brush.c
index 36053f513b656ef6e2edcd0f2ef2d62310c17751..9d5a4b08805d503a380fcb62dd7a37aac81bb8cc 100644 (file)
@@ -1961,6 +1961,12 @@ static void Mod_Q1BSP_LoadTextures(sizebuf_t *sb)
                if (incomplete)
                        continue;
 
+               // If we have exactly one frame, something's wrong.
+               if (max + altmax <= 1)
+               {
+                       Con_Printf("Texture %s is animated (leading +) but has only one frame\n", tx->name);
+               }
+
                if (altmax < 1)
                {
                        // if there is no alternate animation, duplicate the primary