From 59bd2d8903e6770ef7f78fff82a1b43dfbd12730 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sat, 29 Jul 2023 06:40:13 +0000 Subject: [PATCH] render_map: draw 1 more row/column of world coordinates ...for south/east/west only. This is for jumps, which scroll the screen 32 pixels instead of 16. There is no north jump. --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index b18b485..6a87cd6 100644 --- a/main.cpp +++ b/main.cpp @@ -194,8 +194,8 @@ void render_map() const uint32_t base_pattern = state.draw.base_pattern.tilesets[map.tileset]; vdp2.reg.PNCN0 = PNCN0__N0PNB__1WORD | PNCN0__N0CNSM | PNCN0__N0SCN((base_pattern >> 10) & 0x1f); - for (int32_t y = (0 - 1); y < (9 + 1); y++) { - for (int32_t x = (0 - 1); x < (10 + 1); x++) { + for (int32_t y = (0 - 1); y < (9 + 2); y++) { + for (int32_t x = (0 - 2); x < (10 + 2); x++) { render_screen(base_pattern, map, state.player.world,