Commit ec24777
committed
render: Allow clear_screen render commands to be for a single frame.
Every render command from Lua code is queued and rerun every frame, so that
UI stays consistent when the laserdisc is seeking and the Lua tick isn't run.
But Mad Dog McCree uses a screen clear to flash the screen when firing the
gun, and we don't want the whole screen to stay white during the duration of
the seek, so allow these to be marked as only meant for a single-frame of
rendering.
This is slightly goofy, but the alternative is either rejigger the Lua tick to
run during seeks in every game, or add a second optional tick_ui_only function
that runs during seeks (probably the more correct approach, but also the more
complicated).1 parent 59585f9 commit ec24777
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
1002 | 1003 | | |
1003 | 1004 | | |
1004 | 1005 | | |
| 1006 | + | |
1005 | 1007 | | |
1006 | 1008 | | |
1007 | 1009 | | |
| |||
1707 | 1709 | | |
1708 | 1710 | | |
1709 | 1711 | | |
1710 | | - | |
| 1712 | + | |
1711 | 1713 | | |
1712 | 1714 | | |
1713 | | - | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1714 | 1721 | | |
1715 | 1722 | | |
1716 | 1723 | | |
| |||
0 commit comments