diff options
author | Tony J. White <tjw@tjw.org> | 2006-12-09 05:16:56 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-12-09 05:16:56 +0000 |
commit | 2e291c5d89f2fa8fe45c55e13e6c29876321ed78 (patch) | |
tree | 548e32831e773872ee4ae41a034c28d5649362a9 /src/game | |
parent | 74db521aeb93d7e706d9e3745dd3462e8d5f90eb (diff) |
* (bug 2869) trap_FS_FOpenFile() returns 0 if the file doesn't exist (not -1)
when using mode FS_READ
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8601717b..72c4d8ff 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1122,7 +1122,7 @@ void Cmd_CallVote_f( gentity_t *ent ) } else if( !Q_stricmp( arg1, "map" ) ) { - if( trap_FS_FOpenFile( va( "maps/%s.bsp", arg2 ), NULL, FS_READ ) == -1 ) + if( !trap_FS_FOpenFile( va( "maps/%s.bsp", arg2 ), NULL, FS_READ ) ) { trap_SendServerCommand( ent - g_entities, va( "print \"callvote: " "'maps/%s.bsp' could not be found on the server\n\"", arg2 ) ); |