From ad77f5c747123eaf8c26f32bfbe2ee5d77938466 Mon Sep 17 00:00:00 2001 From: div0 Date: Fri, 6 Feb 2009 07:32:54 +0000 Subject: [PATCH] remove some trailing newlines from centerprints ([ 2555673 ] centerprint / overlap patch (server)) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5772 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/arena.qc | 2 +- data/qcsrc/server/cl_client.qc | 4 ++-- data/qcsrc/server/cl_weapons.qc | 2 +- data/qcsrc/server/keyhunt.qc | 8 ++++---- data/qcsrc/server/w_porto.qc | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/data/qcsrc/server/arena.qc b/data/qcsrc/server/arena.qc index 3a5e160ef..691f98dd8 100644 --- a/data/qcsrc/server/arena.qc +++ b/data/qcsrc/server/arena.qc @@ -189,7 +189,7 @@ void Arena_Warmup() if(time < warmup && self.spawned) { if(champion) - msg = strcat(msg, "The Champion is ", champion.netname, "^7\n\n\n"); + msg = strcat(msg, "The Champion is ", champion.netname, "^7"); if(f) msg = strcat(msg, "Round will start in ", ftos(f)); diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 61da5493d..172d17c33 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -875,9 +875,9 @@ void PutClientInServer (void) if(g_assault) { if(self.team == assault_attacker_team) - centerprint(self, "You are attacking!\n"); + centerprint(self, "You are attacking!"); else - centerprint(self, "You are defending!\n"); + centerprint(self, "You are defending!"); } target_voicescript_clear(self); diff --git a/data/qcsrc/server/cl_weapons.qc b/data/qcsrc/server/cl_weapons.qc index a15e1766e..2be2bab33 100644 --- a/data/qcsrc/server/cl_weapons.qc +++ b/data/qcsrc/server/cl_weapons.qc @@ -444,7 +444,7 @@ void Nixnex_GiveCurrentWeapon() if(dt >= 1 && dt <= 5) self.nixnex_lastinfotime = -42; else - centerprint(self, strcat("\n\n^2Active weapon: ^3", W_Name(nixnex_weapon), "\n")); + centerprint(self, strcat("\n\n^2Active weapon: ^3", W_Name(nixnex_weapon))); } if(self.nixnex_lastinfotime != dt) { diff --git a/data/qcsrc/server/keyhunt.qc b/data/qcsrc/server/keyhunt.qc index a4458fe8e..afc6e1562 100644 --- a/data/qcsrc/server/keyhunt.qc +++ b/data/qcsrc/server/keyhunt.qc @@ -623,11 +623,11 @@ void kh_Key_Think() // runs all the time { if(head.team == kh_interferemsg_team) if(head.kh_next) - centerprint(head, "All keys are in your team's hands!\n\nMeet the other key carriers ^1NOW^7!\n"); + centerprint(head, "All keys are in your team's hands!\n\nMeet the other key carriers ^1NOW^7!"); else - centerprint(head, "All keys are in your team's hands!\n\nHelp the key carriers to meet!\n"); + centerprint(head, "All keys are in your team's hands!\n\nHelp the key carriers to meet!"); else - centerprint(head, strcat("All keys are in the ", ColoredTeamName(kh_interferemsg_team), "^7's hands!\n\nInterfere ^1NOW^7!\n")); + centerprint(head, strcat("All keys are in the ", ColoredTeamName(kh_interferemsg_team), "^7's hands!\n\nInterfere ^1NOW^7!")); } } @@ -714,7 +714,7 @@ void kh_LoserTeam(float teem, entity lostkey) // runs when a player pushes a fl // don't actually GIVE him the -nn points, just log kh_Scores_Event(attacker, world, "push", cvar("g_balance_keyhunt_score_push"), 0); PlayerScore_Add(attacker, SP_KH_PUSHES, 1); - centerprint(attacker, "Your push is the best!\n\n\n"); + centerprint(attacker, "Your push is the best!"); bprint("The ", ColoredTeamName(teem), "^7 could not take care of the ", lostkey.netname, "^7 when ", attacker.netname, "^7 came\n"); } else diff --git a/data/qcsrc/server/w_porto.qc b/data/qcsrc/server/w_porto.qc index 3f2f7b18b..a008a2bab 100644 --- a/data/qcsrc/server/w_porto.qc +++ b/data/qcsrc/server/w_porto.qc @@ -113,7 +113,7 @@ void W_Porto_Touch (void) { sound(self, CHAN_PROJECTILE, "porto/create.wav", VOL_BASE, ATTN_NORM); trace_plane_normal = norm; - centerprint(self.owner, "^1In^7-portal created.\n"); + centerprint(self.owner, "^1In^7-portal created."); self.right_vector = self.right_vector - 2 * trace_plane_normal * (self.right_vector * norm); self.angles = vectoangles(self.velocity - 2 * trace_plane_normal * (self.velocity * norm)); } @@ -133,7 +133,7 @@ void W_Porto_Touch (void) { sound(self, CHAN_PROJECTILE, "porto/create.wav", VOL_BASE, ATTN_NORM); trace_plane_normal = norm; - centerprint(self.owner, "^4Out^7-portal created.\n"); + centerprint(self.owner, "^4Out^7-portal created."); W_Porto_Success(); } else -- 2.39.2