From: divverent Date: Tue, 16 Jun 2015 19:58:53 +0000 (+0000) Subject: q1bsp: Only warn once per "bad animating texture". X-Git-Tag: xonotic-v0.8.5~88^2~110 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6dda81876a4b2aabb80300ba03fb03d314171029;p=xonotic%2Fdarkplaces.git q1bsp: Only warn once per "bad animating texture". git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12211 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 66cb6d0b..36053f51 100644 --- a/model_brush.c +++ b/model_brush.c @@ -1904,6 +1904,12 @@ static void Mod_Q1BSP_LoadTextures(sizebuf_t *sb) tx = loadmodel->data_textures + i; if (!tx || tx->name[0] != '+' || tx->name[1] == 0 || tx->name[2] == 0) continue; + num = tx->name[1]; + if ((num < '0' || num > '9') && (num < 'a' || num > 'j')) + { + Con_Printf("Bad animating texture %s\n", tx->name); + continue; + } if (tx->anim_total[0] || tx->anim_total[1]) continue; // already sequenced @@ -1922,8 +1928,7 @@ static void Mod_Q1BSP_LoadTextures(sizebuf_t *sb) anims[num - '0'] = tx2; else if (num >= 'a' && num <= 'j') altanims[num - 'a'] = tx2; - else - Con_Printf("Bad animating texture %s\n", tx->name); + // No need to warn otherwise - we already did above. } max = altmax = 0;