mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
commit
c895428d1d
@ -1541,11 +1541,15 @@ int EXT_FUNC PF_precache_generic_I(const char *s)
|
|||||||
|
|
||||||
int EXT_FUNC PF_IsMapValid_I(const char *mapname)
|
int EXT_FUNC PF_IsMapValid_I(const char *mapname)
|
||||||
{
|
{
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
char cBuf[42];
|
||||||
|
if (!mapname || mapname[0] == '\0')
|
||||||
|
#else
|
||||||
char cBuf[260];
|
char cBuf[260];
|
||||||
if (!mapname || Q_strlen(mapname) == 0)
|
if (!mapname || Q_strlen(mapname) == 0)
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
Q_snprintf(cBuf, sizeof(cBuf), "maps/%.32s.bsp", mapname);
|
Q_snprintf(cBuf, sizeof(cBuf), "maps/%.32s.bsp", mapname);
|
||||||
return FS_FileExists(cBuf);
|
return FS_FileExists(cBuf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user