From 853ce803adb9abf784107ed3d37927a3909b0b97 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Fri, 13 Jan 2023 13:19:56 -0500 Subject: [PATCH] If it aint broke --- source/psp/video_hardware_model.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/psp/video_hardware_model.cpp b/source/psp/video_hardware_model.cpp index eb70054..4e9ad6e 100644 --- a/source/psp/video_hardware_model.cpp +++ b/source/psp/video_hardware_model.cpp @@ -2010,10 +2010,16 @@ void Mod_FloodFillSkin( byte *skin, int skinwidth, int skinheight ) qboolean model_is_zombie(char name[MAX_QPATH]) { - char specChar; - specChar = name[strlen(name) - 5]; - - if (specChar == '#' || specChar == '(' || specChar == '^') + if (Q_strcmp(name, "models/ai/zb#.mdl") == 0 || + Q_strcmp(name, "models/ai/zbc#.mdl") == 0 || + Q_strcmp(name, "models/ai/zcfull.mdl") == 0 || + 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 qfalse;