[quake3-commits] r2011 - in trunk/code: client server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Jun 6 11:08:00 EDT 2011
Author: thilo
Date: 2011-06-06 11:08:00 -0400 (Mon, 06 Jun 2011)
New Revision: 2011
Modified:
trunk/code/client/cl_cgame.c
trunk/code/server/sv_game.c
Log:
Fix return values for several syscall functions, patch by Zack Middleton (#5018)
Modified: trunk/code/client/cl_cgame.c
===================================================================
--- trunk/code/client/cl_cgame.c 2011-06-06 15:05:10 UTC (rev 2010)
+++ trunk/code/client/cl_cgame.c 2011-06-06 15:08:00 UTC (rev 2011)
@@ -548,6 +548,7 @@
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;
Modified: trunk/code/server/sv_game.c
===================================================================
--- trunk/code/server/sv_game.c 2011-06-06 15:05:10 UTC (rev 2010)
+++ trunk/code/server/sv_game.c 2011-06-06 15:08:00 UTC (rev 2011)
@@ -534,7 +534,7 @@
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 @@
default:
Com_Error( ERR_DROP, "Bad game system trap: %ld", (long int) args[0] );
}
- return -1;
+ return 0;
}
/*
More information about the quake3-commits
mailing list