Menu-FN: Strip file extension from player model lookup, that avoids some
headaches when figuring out what model we're supposed to be using
This commit is contained in:
parent
82a501c0be
commit
adc951dd96
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ menu_customize_init(void)
|
||||||
g_modelcount = search_getsize(searchy);
|
g_modelcount = search_getsize(searchy);
|
||||||
g_models = memalloc(sizeof(string) * g_modelcount);
|
g_models = memalloc(sizeof(string) * g_modelcount);
|
||||||
for (int i = 0; i < g_modelcount; i++) {
|
for (int i = 0; i < g_modelcount; i++) {
|
||||||
g_models[i] = search_getfilename(searchy, i);
|
g_models[i] = substring(search_getfilename(searchy, i), 0, -5);
|
||||||
precache_pic(g_models[i]);
|
precache_pic(g_models[i]);
|
||||||
}
|
}
|
||||||
search_end(searchy);
|
search_end(searchy);
|
||||||
|
|
Loading…
Reference in a new issue