summaryrefslogtreecommitdiff
path: root/source/sv_game.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_game.c')
-rw-r--r--source/sv_game.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/sv_game.c b/source/sv_game.c
index fa540f8..184927d 100644
--- a/source/sv_game.c
+++ b/source/sv_game.c
@@ -695,7 +695,7 @@ static cvar_t *PF_cvar( const char *name, const char *value, int flags ) {
}
static void PF_AddCommandString( const char *string ) {
- Cbuf_AddTextEx( &cmd_buffer, string );
+ Cbuf_AddText( &cmd_buffer, string );
}
static void PF_SetAreaPortalState( int portalnum, qboolean open ) {
@@ -729,6 +729,12 @@ static void PF_FreeTags( unsigned tag ) {
Z_FreeTags( tag + TAG_MAX );
}
+static void PF_DebugGraph( float value, int color ) {
+#if (defined _DEBUG) && USE_CLIENT
+ SCR_DebugGraph( value, color );
+#endif
+}
+
//==============================================
static void *game_library;
@@ -866,7 +872,7 @@ void SV_InitGameProgs ( void ) {
import.args = Cmd_RawArgs;
import.AddCommandString = PF_AddCommandString;
- import.DebugGraph = SCR_DebugGraph;
+ import.DebugGraph = PF_DebugGraph;
import.SetAreaPortalState = PF_SetAreaPortalState;
import.AreasConnected = PF_AreasConnected;