From 0c5d7e8699f29c8b252e78284492bfc16942d3fd Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 1 Jul 2011 21:34:47 +0200 Subject: [PATCH] The builtin centerprint in the server simply calls the csqc centerprint so better use it (it sends 3 bytes less than Send_CSQC_Centerprint_Generic) --- qcsrc/server/builtins.qh | 2 +- qcsrc/server/miscfunctions.qc | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/qcsrc/server/builtins.qh b/qcsrc/server/builtins.qh index ef54b1d38..cf0198b4c 100644 --- a/qcsrc/server/builtins.qh +++ b/qcsrc/server/builtins.qh @@ -64,7 +64,7 @@ void makestatic (entity e) = #69; void changelevel (string s) = #70; void cvar_set (string var, string val) = #72; -//void(entity client, string s) centerprint = #73; +void(entity client, string s) centerprint = #73; void ambientsound (vector pos, string samp, float vol, float atten) = #74; string precache_model2 (string s) = #75; string precache_sound2 (string s) = #76; diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 982a996ca..3b4cde596 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -717,12 +717,6 @@ float NumberToTeamNumber(float number) return -1; } -void Send_CSQC_Centerprint_Generic(entity e, float id, string s1, float duration, float countdown_num); -void centerprint(entity e, string s) -{ - Send_CSQC_Centerprint_Generic(e, 0, s, 0, 0); -} - // decolorizes and team colors the player name when needed string playername(entity p) { -- 2.39.2