From 4ee965d077fdc68f31db8304bb1e679bb5d511f7 Mon Sep 17 00:00:00 2001
From: Mario <mario.mario@y7mail.com>
Date: Tue, 23 Apr 2013 05:17:27 +1000
Subject: [PATCH] Add centerprints for some hidden turret messages

---
 qcsrc/common/notifications.qh                  | 2 ++
 qcsrc/server/mutators/gamemode_towerdefense.qc | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh
index 5886c3a2dc..f7cca6caa1 100644
--- a/qcsrc/common/notifications.qh
+++ b/qcsrc/common/notifications.qh
@@ -717,12 +717,14 @@ void Send_Notification_WOVA(
 	MSG_MULTI_NOTIF(1, MULTI_TD_MAXHEALTH,              	 NO_MSG,		INFO_TD_MAXHEALTH,	             		   CENTER_TD_MAXHEALTH) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_MAXPOWER,              	 	 NO_MSG,		INFO_TD_MAXPOWER,	             		   CENTER_TD_MAXPOWER) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_MAXTURRETS,              	 NO_MSG,		INFO_TD_MAXTURRETS,	             		   CENTER_TD_MAXTURRETS) \
+	MSG_MULTI_NOTIF(1, MULTI_TD_NOFUEL,               		 NO_MSG,		INFO_TD_NOFUEL,	             	   		   CENTER_TD_NOFUEL) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_NOFUEL_REPAIR,               NO_MSG,		INFO_TD_NOFUEL_REPAIR,	             	   CENTER_TD_NOFUEL_REPAIR) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_NOFUEL_UPGRADE,              NO_MSG,		INFO_TD_NOFUEL_UPGRADE,	             	   CENTER_TD_NOFUEL_UPGRADE) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_PHASE_BUILD,              	 NO_MSG,		INFO_TD_PHASE_BUILD,             		   CENTER_TD_PHASE_BUILD) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_PHASE_COMBAT,              	 NO_MSG,		INFO_TD_PHASE_COMBAT,             		   CENTER_TD_PHASE_COMBAT) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_REMOVE,              	 	 NO_MSG,		INFO_TD_REMOVE,	             		   	   CENTER_TD_REMOVE) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_REPAIR,              	 	 NO_MSG,		INFO_TD_REPAIR,	             		   	   CENTER_TD_REPAIR) \
+	MSG_MULTI_NOTIF(1, MULTI_TD_SPAWN,              	 	 NO_MSG,		INFO_TD_SPAWN,	             		   	   CENTER_TD_SPAWN) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_UPGRADE,              	     NO_MSG,		INFO_TD_UPGRADE,	             		   CENTER_TD_UPGRADE) \
 	MSG_MULTI_NOTIF(1, MULTI_TD_VICTORY,              	 	 NO_MSG,		INFO_TD_VICTORY,             		 	   CENTER_TD_VICTORY) \
 	MSG_MULTI_NOTIF(1, WEAPON_ACCORDEON_MURDER,              NO_MSG,        INFO_WEAPON_ACCORDEON_MURDER,              NO_MSG) \
diff --git a/qcsrc/server/mutators/gamemode_towerdefense.qc b/qcsrc/server/mutators/gamemode_towerdefense.qc
index 0b6d6d67ce..e54360d5bd 100644
--- a/qcsrc/server/mutators/gamemode_towerdefense.qc
+++ b/qcsrc/server/mutators/gamemode_towerdefense.qc
@@ -263,7 +263,7 @@ float td_checkfuel(entity ent, string tur)
 	
 	if(ent.ammo_fuel < turcost)
 	{
-		Send_Notification(NOTIF_ONE, ent, MSG_INFO, INFO_TD_NOFUEL);
+		Send_Notification(NOTIF_ONE, ent, MSG_MULTI, MULTI_TD_NOFUEL);
 		return FALSE;
 	}
 	
@@ -303,7 +303,7 @@ void spawnturret(entity spawnedby, entity own, string turet, vector orig)
 		default: Send_Notification(NOTIF_ONE, spawnedby, MSG_INFO, INFO_TD_INVALID); remove(self); self = oldself; return;
 	}
 	
-	Send_Notification(NOTIF_ONE, spawnedby, MSG_INFO, INFO_TD_SPAWN);
+	Send_Notification(NOTIF_ONE, spawnedby, MSG_MULTI, MULTI_TD_SPAWN);
 		
 	self = oldself;
 }
-- 
2.39.5