]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2679 for real
authorterencehill <piuntn@gmail.com>
Fri, 1 Apr 2022 22:32:02 +0000 (00:32 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 1 Apr 2022 22:32:02 +0000 (00:32 +0200)
qcsrc/menu/menu.qc

index ec94b2cdfcc0f9acdbe0f9685a608a0dae8e5fa1..d26066d190663d28a521a461c270a5d84c0213ae 100644 (file)
@@ -681,7 +681,7 @@ void m_draw(float width, float height)
        {
                if (autocvar_g_campaign)
                {
-                       if (connected_time && time - connected_time > 0)
+                       if (connected_time && time - connected_time > 1)
                        {
                                // in the case player uses the disconnect command (in the console or with a key)
                                // reset g_campaign and update menu items to reflect cvar values that may have been restored after quiting the campaign