summaryrefslogtreecommitdiff
path: root/src/server/sv_game.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-05-04 15:39:35 +0000
committerTim Angus <tim@ngus.net>2013-01-09 21:36:29 +0000
commitaa99c0230b8d1c9118779c75d5f8c98d5683f1c3 (patch)
tree1fc20a760cdf94091d73d313f28493f4869d67d0 /src/server/sv_game.c
parent1ed7bc5f7fee06300b27e214ca78a739ac263b0b (diff)
- Add HOMEPATH default name define to q_shared.c, patch by uZu (#4973) - Reverted change from (#4972) and implemented the other suggestion to be consistent with cl_cgame.c and cl_ui.c
Diffstat (limited to 'src/server/sv_game.c')
-rw-r--r--src/server/sv_game.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/server/sv_game.c b/src/server/sv_game.c
index 320b7937..bde8fb95 100644
--- a/src/server/sv_game.c
+++ b/src/server/sv_game.c
@@ -24,14 +24,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "server.h"
-void SV_GameError( const char *string ) {
- Com_Error( ERR_DROP, "%s", string );
-}
-
-void SV_GamePrint( const char *string ) {
- Com_Printf( "%s", string );
-}
-
// these functions must be used instead of pointer arithmetic, because
// the game allocates gentities with private information after the server shared part
int SV_NumForGentity( sharedEntity_t *ent ) {
@@ -297,10 +289,10 @@ The module is making a system call
intptr_t SV_GameSystemCalls( intptr_t *args ) {
switch( args[0] ) {
case G_PRINT:
- SV_GamePrintf((const char*) VMA(1));
+ Com_Printf( "%s", (const char*)VMA(1) );
return 0;
case G_ERROR:
- SV_GameError((const char*) VMA(1));
+ Com_Error( ERR_DROP, "%s", (const char*)VMA(1) );
return 0;
case G_MILLISECONDS:
return Sys_Milliseconds();