]> 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)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 17 Oct 2015 22:43:20 +0000 (00:43 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12212 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fc2008eb07881331f8313519ce870e720b3f2388

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