mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
oopsie, that was an ill-advised change :P
This commit is contained in:
parent
1ea1a2f529
commit
054f4b7bd1
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ Con_Skyboxlist_f (void)
|
||||||
for (i = 0; i < skyboxlist->count; i++) {
|
for (i = 0; i < skyboxlist->count; i++) {
|
||||||
if (strlen(skyboxlist->list[i]) > strlen(sb_endings[0]) && strcmp(skyboxlist->list[i] + strlen(skyboxlist->list[i]) - strlen(sb_endings[0]), sb_endings[0]) == 0) {
|
if (strlen(skyboxlist->list[i]) > strlen(sb_endings[0]) && strcmp(skyboxlist->list[i] + strlen(skyboxlist->list[i]) - strlen(sb_endings[0]), sb_endings[0]) == 0) {
|
||||||
strncpy(basename, skyboxlist->list[i], sizeof(basename));
|
strncpy(basename, skyboxlist->list[i], sizeof(basename));
|
||||||
basename[sizeof(basename) - 1] = 0;
|
basename[strlen(skyboxlist->list[i]) - strlen(sb_endings[0])] = 0;
|
||||||
c = 0;
|
c = 0;
|
||||||
for (j = 1; sb_endings[j]; j++) {
|
for (j = 1; sb_endings[j]; j++) {
|
||||||
b = 0;
|
b = 0;
|
||||||
|
|
Loading…
Reference in a new issue