Created attachment 2683[details]
make use of the SV_Game{Error,Print} functions
Hello,
the functions SV_GameError() and SV_GamePrint() found at the top of the sv_game.c file are not used. I guess they were expected to be used in the switch() within the SV_GameSystemCalls() func so I made a patch doing this (a tough one, for sure ;))
Another possibility is just to remove the func from that file.
Have a nice day
Created attachment 2683 [details] make use of the SV_Game{Error,Print} functions Hello, the functions SV_GameError() and SV_GamePrint() found at the top of the sv_game.c file are not used. I guess they were expected to be used in the switch() within the SV_GameSystemCalls() func so I made a patch doing this (a tough one, for sure ;)) Another possibility is just to remove the func from that file. Have a nice daydiff -Nur ioquake3-1959/code/server/sv_game.c ioquake3-1959-SV_GamePrintError/code/server/sv_game.c --- ioquake3-1959/code/server/sv_game.c 2011-05-03 20:43:15.395823771 +0200 +++ ioquake3-1959-SV_GamePrintError/code/server/sv_game.c 2011-05-03 20:52:06.035823768 +0200 @@ -300,10 +300,10 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) { switch( args[0] ) { case G_PRINT: - Com_Printf( "%s", (const char*)VMA(1) ); + SV_GamePrint( (const char*)VMA(1) ); return 0; case G_ERROR: - Com_Error( ERR_DROP, "%s", (const char*)VMA(1) ); + SV_GameError( (const char*)VMA(1) ); return 0; case G_MILLISECONDS: return Sys_Milliseconds();