Commit 91495fa
committed
Carry an outstanding gate's count across a turn boundary
Interrupting or settling a turn does not close the permission/operator
overlay still on screen, so a gate raised in one turn can still be
sitting open when the next turn starts, or after the current one has
already settled. Resetting blockedGateCount to zero on every turn
transition lost track of that gate: its eventual close would land
against whatever turn happened to be live by then, either dropping
that turn's own exemption early or silently reviving a settled turn's
status to "running".
Turn resets now carry the prior count forward instead of dropping it,
and only mark a fresh turn "blocked" rather than "running" when a
carried-over gate is still open. A terminal reset (done, stopped,
failed) is left with its terminal status intact, since every one of
those already satisfies the watchdog's exemption on its own.1 parent 874a9a6 commit 91495fa
2 files changed
Lines changed: 80 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
209 | 247 | | |
210 | 248 | | |
211 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
172 | 190 | | |
173 | 191 | | |
174 | 192 | | |
175 | 193 | | |
176 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
177 | 197 | | |
178 | 198 | | |
179 | 199 | | |
| |||
188 | 208 | | |
189 | 209 | | |
190 | 210 | | |
191 | | - | |
192 | 211 | | |
193 | 212 | | |
194 | 213 | | |
195 | 214 | | |
196 | | - | |
197 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
198 | 220 | | |
199 | 221 | | |
200 | 222 | | |
| |||
529 | 551 | | |
530 | 552 | | |
531 | 553 | | |
532 | | - | |
| 554 | + | |
533 | 555 | | |
534 | 556 | | |
535 | 557 | | |
536 | | - | |
| 558 | + | |
537 | 559 | | |
538 | 560 | | |
539 | 561 | | |
| |||
545 | 567 | | |
546 | 568 | | |
547 | 569 | | |
548 | | - | |
| 570 | + | |
549 | 571 | | |
550 | 572 | | |
551 | 573 | | |
552 | | - | |
| 574 | + | |
553 | 575 | | |
554 | 576 | | |
555 | 577 | | |
| |||
561 | 583 | | |
562 | 584 | | |
563 | 585 | | |
564 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
565 | 590 | | |
566 | 591 | | |
567 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
568 | 596 | | |
569 | 597 | | |
570 | 598 | | |
571 | 599 | | |
572 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
573 | 604 | | |
574 | 605 | | |
575 | 606 | | |
| |||
0 commit comments