From 60c268b784a55b10f2bbaeea1e00e5a6c9649244 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 16 Aug 2010 00:04:51 +0200 Subject: [PATCH] Remove unnecessary checks... Now that match_pattern on the engine works well on *.* patterns too, for now on we can trust search_begin. --- qcsrc/client/waypointsprites.qc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index d7b9ee9d0..a001732da 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -436,11 +436,7 @@ void WaypointSprite_Load() for(i = 0; i < n; ++i) { s = search_getfilename(dh, i); - if(substring(s, 0, 15) != "models/sprites/") - continue; - if(substring(s, strlen(s) - 4, 4) != ".tga") - continue; - s = substring(s, 15, strlen(s) - 19); + s = substring(s, 15, strlen(s) - 15 - 4); // strip models/sprites/ and .tga o = strstrofs(s, "_frame", 0); sname = strcat("/spriteframes/", substring(s, 0, o)); -- 2.39.2