]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/Main.qc
Merge remote-tracking branch 'origin/master' into samual/notification_rewrite
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / Main.qc
index c71c787c6e679cd74ecba9c869f3f7b604ff8b21..a1bd34534220afea04970c35efd055e19b87ecf3 100644 (file)
@@ -154,7 +154,8 @@ void CSQC_Init(void)
        // needs to be done so early because of the constants they create
        CALL_ACCUMULATED_FUNCTION(RegisterWeapons);
        CALL_ACCUMULATED_FUNCTION(RegisterGametypes);
-
+       CALL_ACCUMULATED_FUNCTION(DecNotifs);
+       
        WaypointSprite_Load();
 
        // precaches
@@ -1186,6 +1187,10 @@ float CSQC_Parse_TempEntity()
                        cl_notice_read();
                        bHandled = true;
                        break;
+               case TE_CSQC_NOTIFICATION:
+                       Local_Notification(ReadShort(), ReadCoord(), ReadString(), ReadString(), ReadString());
+                       bHandled = true;
+                       break;
                default:
                        // No special logic for this temporary entity; return 0 so the engine can handle it
                        bHandled = false;