Skip to content

Commit ddd3f26

Browse files
fix(zc): playtime not drawing unless scrolling
I'm so mad at how dumb this was. Specifically, it doesn't draw if you have "subscreen over sprites" disabled unless you're scrolling.
1 parent 4748d9a commit ddd3f26

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/zc/maps.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4270,7 +4270,9 @@ void draw_screen(mapscr* this_screen, bool showhero, bool runGeneric)
42704270
if(!get_qr(qr_SUBSCREENOVERSPRITES))
42714271
{
42724272
set_clip_rect(framebuf,draw_screen_clip_rect_x1,draw_screen_clip_rect_y1,draw_screen_clip_rect_x2,draw_screen_clip_rect_y2);
4273-
put_passive_subscr(framebuf, 0, passive_subscreen_offset, false, sspUP);
4273+
bool dotime = false;
4274+
if (replay_version_check(22) || !replay_is_active()) dotime = game->should_show_time();
4275+
put_passive_subscr(framebuf, 0, passive_subscreen_offset, dotime, sspUP);
42744276
}
42754277

42764278

src/zc/replay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct ReplayStep;
2626

2727
static const int ASSERT_SNAPSHOT_BUFFER = 10;
2828
static const int ASSERT_FAILED_EXIT_CODE = 120;
29-
static const int VERSION = 21;
29+
static const int VERSION = 22;
3030

3131
static const std::string ANNOTATION_MARKER = "«";
3232
static const char TypeMeta = 'M';

0 commit comments

Comments
 (0)