From fc2008eb07881331f8313519ce870e720b3f2388 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 16 Jun 2015 19:58:57 +0000 Subject: [PATCH] q1bsp: Warn if an animated texture has exactly one frame. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12212 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/model_brush.c b/model_brush.c index 36053f51..9d5a4b08 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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 -- 2.39.2