mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Wenn eine Datei nicht gefunden wurde, schmieren wir nicht ab.
Stattdessen ignorieren wir dies erst einmal, geben die Fehlermeldung und laufen in Rihe weiter.
This commit is contained in:
parent
ffd7ff5bb9
commit
7fbe1e6a24
1 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
|||
* =============================================================================
|
||||
*/
|
||||
|
||||
#define MAX_HANDLES 1024
|
||||
#define MAX_HANDLES 512
|
||||
#define MAX_READ 0x10000
|
||||
#define MAX_WRITE 0x10000
|
||||
#define MAX_FIND_FILES 0x04000
|
||||
|
@ -312,11 +312,14 @@ FS_HandleForFile(const char *path, fileHandle_t * f)
|
|||
fsHandle_t *
|
||||
FS_GetFileByHandle(fileHandle_t f)
|
||||
{
|
||||
if (f <= 0 || f > MAX_HANDLES)
|
||||
if (f < 0 || f > MAX_HANDLES)
|
||||
{
|
||||
Com_Error(ERR_DROP, "FS_GetFileByHandle: out of range");
|
||||
}
|
||||
|
||||
if (f == 0)
|
||||
f++;
|
||||
|
||||
return (&fs_handles[f - 1]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue