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.
This commit is contained in:
parent
0b61a59117
commit
59bd2d8903
4
main.cpp
4
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user