]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure client has received gametype name before displaying it in the centerprint...
authorterencehill <piuntn@gmail.com>
Sun, 29 May 2022 23:02:19 +0000 (01:02 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 29 May 2022 23:02:19 +0000 (01:02 +0200)
qcsrc/client/announcer.qc

index 9d70b3e270715223a65297870c3b41f7c554d3e0..d46595e8718bde0a2007fb276a6e54ab6b49d7ca 100644 (file)
@@ -230,6 +230,9 @@ void Announcer_Time()
 
 void Announcer()
 {
+       // announcer code sets gametype name as centerprint title
+       if(!gametype)
+               return;
        Announcer_Gamestart();
        Announcer_Time();
 }