From 2e291c5d89f2fa8fe45c55e13e6c29876321ed78 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Sat, 9 Dec 2006 05:16:56 +0000 Subject: * (bug 2869) trap_FS_FOpenFile() returns 0 if the file doesn't exist (not -1) when using mode FS_READ --- src/game/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- cgit