]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix overtime annce with sudden death LegendaryGuard/bai_mod
authorz411 <z411@omaera.org>
Fri, 14 May 2021 22:24:23 +0000 (18:24 -0400)
committerz411 <z411@omaera.org>
Fri, 14 May 2021 22:24:23 +0000 (18:24 -0400)
qcsrc/client/hud/panel/spect.qc
qcsrc/server/world.qc

index eb77d26eb272b6ef64da15c07032b2b03b975cf8..1f8c730e2f31c3772aefcd63708bc324d70d501a 100644 (file)
@@ -337,14 +337,14 @@ void HUD_SpectHUD()
                entity pl_right = pl_left.sort_next;
        
                // Left player
-               if(pl_left && (entcs_GetSpecState(pl_left.sv_entnum) != ENTCS_SPEC_PURE) {
+               if(pl_left && (entcs_GetSpecState(pl_left.sv_entnum)) != ENTCS_SPEC_PURE) {
                        pos = panel_pos + vec2((vid_conwidth - 1) / 2, 0);
                        pos.x -= (timer_width * 1.3) / 2;
                        HUD_SpectHUD_drawDuelScore(pos, pl_left, true);
                }
                
                // Right player
-               if(pl_right && (entcs_GetSpecState(pl_right.sv_entnum) != ENTCS_SPEC_PURE) {
+               if(pl_right && (entcs_GetSpecState(pl_right.sv_entnum)) != ENTCS_SPEC_PURE) {
                        pos = panel_pos + vec2((vid_conwidth - 1) / 2, 0);
                        pos.x += (timer_width * 1.3) / 2;
                        HUD_SpectHUD_drawDuelScore(pos, pl_right, false);
index e921b86b4707059e8c36313e422b0a90f683083d..eaab11fe5a33d966f8f524a573ff1b3188fb1115 100644 (file)
@@ -1741,8 +1741,9 @@ void CheckRules_World()
                                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_RACE_FINISHLAP);
                        else
                                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_OVERTIME_FRAG);
+                       checkrules_overtimesadded = 1;
                        sound(NULL, CH_INFO, SND_OVERTIME, VOL_BASE, ATTN_NONE);
-                       Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_SUDDENDEATH);
+                       Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_OVERTIME);
                }
        }
        else