If it aint broke

This commit is contained in:
Steam Deck User 2023-01-13 13:19:56 -05:00
parent 6d0f10eaa6
commit 853ce803ad

View file

@ -2010,10 +2010,16 @@ void Mod_FloodFillSkin( byte *skin, int skinwidth, int skinheight )
qboolean model_is_zombie(char name[MAX_QPATH]) qboolean model_is_zombie(char name[MAX_QPATH])
{ {
char specChar; if (Q_strcmp(name, "models/ai/zb#.mdl") == 0 ||
specChar = name[strlen(name) - 5]; Q_strcmp(name, "models/ai/zbc#.mdl") == 0 ||
Q_strcmp(name, "models/ai/zcfull.mdl") == 0 ||
if (specChar == '#' || specChar == '(' || specChar == '^') Q_strcmp(name, "models/ai/zhc^.mdl") == 0 ||
Q_strcmp(name, "models/ai/zalc(.mdl") == 0 ||
Q_strcmp(name, "models/ai/zarc(.mdl") == 0 ||
Q_strcmp(name, "models/ai/zfull.mdl") == 0 ||
Q_strcmp(name, "models/ai/zh^.mdl") == 0 ||
Q_strcmp(name, "models/ai/zal(.mdl") == 0 ||
Q_strcmp(name, "models/ai/zar(.mdl") == 0)
return qtrue; return qtrue;
return qfalse; return qfalse;