]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/Main.qc
Merge branch 'master' into terencehill/centerprint_stuff
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / Main.qc
index c9fbc87b1b07ba0db18266125cd252f9155188f6..506c37eda80390f1fe25372148cebc869df504aa 100644 (file)
@@ -1325,6 +1325,16 @@ void Net_Notify() {
        {
                HUD_Centerprint(ReadString(), ReadString(), ReadShort(), ReadByte());
        }
+       else if(type == CSQC_CENTERPRINT_GENERIC)
+       {
+                                                               //      id                      string          time    countdown_num
+               float id;
+               id = ReadByte();
+               if (id == 0)
+                       centerprint_generic(id, ReadString(), 0, 0);
+               else
+                       centerprint_generic(id, ReadString(), ReadByte(), ReadByte());
+       }
 }
 
 void Net_WeaponComplain() {