]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
q1bsp: Warn if an animated texture has exactly one frame.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Jun 2015 19:58:57 +0000 (19:58 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Jun 2015 19:58:57 +0000 (19:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12212 d7cf8633-e32d-0410-b094-e92efae38249

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