From 5fa144f146c0a402cc9ffcaee4f0a5be55202984 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sun, 2 Jul 2023 19:47:39 -0400 Subject: [PATCH] Fix Marathon 2020 section cool highlighting --- tetris/modes/marathon_2020.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_2020.lua b/tetris/modes/marathon_2020.lua index 0bfab3b..e8dcb28 100644 --- a/tetris/modes/marathon_2020.lua +++ b/tetris/modes/marathon_2020.lua @@ -352,9 +352,13 @@ function Marathon2020Game:updateSectionTimes(old_level, new_level) table.insert(self.section_times, section_time) self.section_start_time = self.frames - if self.secondary_section_times[section] < cool_cutoffs[self.delay_level] and - (section == 1 or self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120) then + if ( + self.secondary_section_times[section] < cool_cutoffs[self.delay_level] and + section == 1 or self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120 + ) then sectionCool(section) + else + table.insert(self.section_status, "none") end if section > 5 then