HLSprite_Init: TFC weapons start with 'tf_weapon' so we gotta search for those too

This commit is contained in:
Marco Cawthorne 2024-07-26 17:16:50 -07:00
parent f52e61dbd0
commit 3906dadddc
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -112,7 +112,7 @@ HLSprite_Init(void)
g_hlSpriteCount = 0i;
spriteCount = HLSprite_CountEntriesInFile("sprites/hud.txt");
sh = search_begin("sprites/weapon_*.txt", TRUE, TRUE);
sh = search_begin("sprites/*weapon_*.txt", TRUE, TRUE);
for (int i = 0; i < search_getsize(sh); i++) {
hudFile = search_getfilename(sh, i);