]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix foced centerprint messages
authorz411 <z411@omaera.org>
Tue, 20 Oct 2020 21:35:49 +0000 (18:35 -0300)
committerz411 <z411@omaera.org>
Tue, 20 Oct 2020 21:35:49 +0000 (18:35 -0300)
qcsrc/client/hud/panel/centerprint.qc

index a4b2eb2312b0dc7073830d63c8f21757a1e14a46..16b0b0e0dcb36d48d739f6187d99f9117d7a6bbf 100644 (file)
@@ -359,7 +359,7 @@ void HUD_CenterPrint()
                // fade
                //if(centerprint_time[j] < 0)  // Expired but forced. Expire time is the fade-in time.
                //      a = (time - centerprint_expire_time[j]) / max(0.0001, autocvar_hud_panel_centerprint_fade_in);
-               if(centerprint_expire_time[j] - autocvar_hud_panel_centerprint_fade_out > time)  // Regularily printed. Not fading out yet.
+               if(centerprint_time[j] < 0 || centerprint_expire_time[j] - autocvar_hud_panel_centerprint_fade_out > time)  // Regularily printed. Not fading out yet.
                        a = 1;
                else // Expiring soon, so fade it out.
                        a = (centerprint_expire_time[j] - time) / max(0.0001, autocvar_hud_panel_centerprint_fade_out);