From: divverent Date: Tue, 16 Jun 2015 19:58:57 +0000 (+0000) Subject: q1bsp: Warn if an animated texture has exactly one frame. X-Git-Tag: xonotic-v0.8.5~88^2~109 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=fc2008eb07881331f8313519ce870e720b3f2388;p=xonotic%2Fdarkplaces.git 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 --- 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