]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Send the expire msg for the MOTD only if welcome_message_time hasn't passed yet
authorterencehill <piuntn@gmail.com>
Tue, 5 Jul 2011 22:52:54 +0000 (00:52 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 5 Jul 2011 22:52:54 +0000 (00:52 +0200)
qcsrc/server/cl_client.qc

index 6ead4054ba54e6c4584875410944b7371c4d13f0..144e849e1d7e712f134253cc145baeba8d1f3763 100644 (file)
@@ -2472,6 +2472,7 @@ void LeaveSpectatorMode()
                                bprint ("^4", self.netname, "^4 is playing now\n");
 
                        if(!autocvar_g_campaign)
+                       if (time < self.jointime + autocvar_welcome_message_time)
                                Send_CSQC_Centerprint_Generic_Expire(self, CPID_MOTD); // clear MOTD
 
                        return;