mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Merge pull request #340 from earth-metal/master
Minor bug-fixes: Case-insensitive file loading & Rogue dmflags display
This commit is contained in:
commit
4155e8c26d
2 changed files with 5 additions and 3 deletions
|
@ -3397,7 +3397,7 @@ DMOptions_MenuInit(void)
|
|||
Menu_AddItem(&s_dmoptions_menu, &s_quad_drop_box);
|
||||
Menu_AddItem(&s_dmoptions_menu, &s_friendlyfire_box);
|
||||
|
||||
if (M_IsGame("rogueg"))
|
||||
if (M_IsGame("rogue"))
|
||||
{
|
||||
Menu_AddItem(&s_dmoptions_menu, &s_no_mines_box);
|
||||
Menu_AddItem(&s_dmoptions_menu, &s_no_nukes_box);
|
||||
|
|
|
@ -367,7 +367,7 @@ FS_FCloseFile(fileHandle_t f)
|
|||
int
|
||||
FS_FOpenFile(const char *name, fileHandle_t *f, qboolean gamedir_only)
|
||||
{
|
||||
char path[MAX_OSPATH];
|
||||
char path[MAX_OSPATH], lwrName[MAX_OSPATH];
|
||||
fsHandle_t *handle;
|
||||
fsPack_t *pack;
|
||||
fsSearchPath_t *search;
|
||||
|
@ -463,7 +463,9 @@ FS_FOpenFile(const char *name, fileHandle_t *f, qboolean gamedir_only)
|
|||
|
||||
if (!handle->file)
|
||||
{
|
||||
Q_strlwr(path);
|
||||
Com_sprintf(lwrName, sizeof(lwrName), "%s", handle->name);
|
||||
Q_strlwr(lwrName);
|
||||
Com_sprintf(path, sizeof(path), "%s/%s", search->path, lwrName);
|
||||
handle->file = Q_fopen(path, "rb");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue