From f5deb4a88b32d4a181c1e6874d21f9545ca0248a Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 6 Jun 2011 15:08:00 +0000 Subject: [PATCH] Fix return values for several syscall functions, patch by Zack Middleton (#5018) --- code/client/cl_cgame.c | 1 + code/server/sv_game.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index e87ce7a2..8e7a38e9 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -548,6 +548,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { return re.RegisterShaderNoMip( VMA(1) ); case CG_R_REGISTERFONT: re.RegisterFont( VMA(1), args[2], VMA(3)); + return 0; case CG_R_CLEARSCENE: re.ClearScene(); return 0; diff --git a/code/server/sv_game.c b/code/server/sv_game.c index c1bb2df8..7c8542eb 100644 --- a/code/server/sv_game.c +++ b/code/server/sv_game.c @@ -534,7 +534,7 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { case BOTLIB_EA_ACTION: botlib_export->ea.EA_Action( args[1], args[2] ); - break; + return 0; case BOTLIB_EA_GESTURE: botlib_export->ea.EA_Gesture( args[1] ); return 0; @@ -840,7 +840,7 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { default: Com_Error( ERR_DROP, "Bad game system trap: %ld", (long int) args[0] ); } - return -1; + return 0; } /*