]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
REALLY make it work :D
authorSamual Lenks <samual@xonotic.org>
Tue, 25 Sep 2012 23:11:08 +0000 (19:11 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 25 Sep 2012 23:11:08 +0000 (19:11 -0400)
qcsrc/client/Main.qc
qcsrc/common/notifications.qc
qcsrc/server/g_world.qc
qcsrc/server/mutators/gamemode_ctf.qc

index 43cb8cb2f39be47827e0503fa49c9a107a57651d..41df617597f7edea8b3670129af2b09b52e2addd 100644 (file)
@@ -154,6 +154,7 @@ void CSQC_Init(void)
        // needs to be done so early because of the constants they create
        RegisterWeapons();
        RegisterGametypes();
+       DecNotifs();
 
        WaypointSprite_Load();
 
index 673a8e1829497d60e63add3e2de5a8a453acc858..487e26526b92b727fb1f2069b2bf6a08eb7b0efb 100644 (file)
@@ -130,11 +130,11 @@ MSG_WEAPON_NOTIFICATIONS
 
 string normal_or_gentle(string normal, string gentle)
 {
-#ifdef CSQC
+       #ifdef CSQC
        if(autocvar_cl_gentle || autocvar_cl_gentle_messages)
-#else
+       #else
        if(autocvar_sv_gentle)
-#endif
+       #endif
                return ((gentle != "") ? gentle : normal);
        else
                return normal;
index 8000c69ed21613a1f18a24b32ae266e91095372f..f4496f1ac7519dd8391252848a41ed9a1466ef86 100644 (file)
@@ -563,6 +563,7 @@ void spawnfunc___init_dedicated_server(void)
 void Map_MarkAsRecent(string m);
 float world_already_spawned;
 void RegisterWeapons();
+void DecNotifs();
 void Nagger_Init();
 void ClientInit_Spawn();
 void WeaponStats_Init();
@@ -602,6 +603,7 @@ void spawnfunc_worldspawn (void)
        // needs to be done so early because of the constants they create
        RegisterWeapons();
        RegisterGametypes();
+       DecNotifs();
 
        ServerProgsDB = db_load(strcat("server.db", autocvar_sessionid));
 
index 7dbf4048dff15befaba1bccd501be6437c76b85a..ef426785442866661ad54423515ac73b66df9b1a 100644 (file)
@@ -287,7 +287,7 @@ void ctf_Handle_Retrieve(entity flag, entity player)
        FOR_EACH_REALPLAYER(tmp_player)
        {
                if(tmp_player == sender)
-                       Send_Notification(MSG_CENTER, tmp_player, CENTER_CTF_EVENT_PASS_SENT, flag.netname, sender.netname, "");
+                       Send_Notification(MSG_CENTER, tmp_player, CENTER_CTF_EVENT_PASS_SENT, flag.netname, player.netname, "");
                else if(tmp_player == player)
                        Send_Notification(MSG_CENTER, tmp_player, CENTER_CTF_EVENT_PASS_RECEIVED, flag.netname, sender.netname, "");
                else if(!IsDifferentTeam(tmp_player, sender))