summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-06-06 15:08:00 +0000
committerTim Angus <tim@ngus.net>2013-01-09 22:39:52 +0000
commitecc34c1ddb8b927bbf88db0fab645e5b75d72388 (patch)
treebdce7f64380729b62ce1c7365a970e24d67aee58 /src
parent711627b6f1feab6be3f0a55b9b193fef6f3f80db (diff)
Fix return values for several syscall functions, patch by Zack Middleton (#5018)
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_cgame.c1
-rw-r--r--src/server/sv_game.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c
index 1ec50288..c1b58f2c 100644
--- a/src/client/cl_cgame.c
+++ b/src/client/cl_cgame.c
@@ -561,6 +561,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/src/server/sv_game.c b/src/server/sv_game.c
index bde8fb95..c81c62ea 100644
--- a/src/server/sv_game.c
+++ b/src/server/sv_game.c
@@ -488,7 +488,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;
}
/*