summaryrefslogtreecommitdiff
path: root/src/client/ui/ui.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2012-08-03 22:01:32 +0400
committerAndrey Nazarov <skuller@skuller.net>2012-08-04 13:27:58 +0400
commit1f932378bb8ecf82293944c22d4c0d7c0e30b93f (patch)
tree80223261917783145a5ce3fef1f952e70ad65e46 /src/client/ui/ui.h
parentb35a50a0ed5e36ca050c872504038304cbb68387 (diff)
Optimize search for player models.
Avoid doing recursive pattern search by removing otherwise unused code for listing weapon models. Bump MAX_PLAYERMODELS back to 1024.
Diffstat (limited to 'src/client/ui/ui.h')
-rw-r--r--src/client/ui/ui.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/ui/ui.h b/src/client/ui/ui.h
index 21ef2a0..eece618 100644
--- a/src/client/ui/ui.h
+++ b/src/client/ui/ui.h
@@ -243,14 +243,12 @@ typedef struct menuKeybind_s {
char *cmd;
} menuKeybind_t;
-#define MAX_PLAYERMODELS 32
+#define MAX_PLAYERMODELS 1024
typedef struct playerModelInfo_s {
int nskins;
char **skindisplaynames;
- char **weaponNames;
- int numWeapons;
- char directory[MAX_QPATH];
+ char *directory;
} playerModelInfo_t;
void PlayerModel_Load(void);