gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 4c8518e3982839fe94dd6169aa96a3d95c160404 parent 88a86778d65102b6399dc94554a016524ed32dd1 Author: Toxa <untoxa@mail.ru> Date: Mon, 15 Mar 2021 12:52:21 +0300 correct limiting in the large_map example Diffstat:
| M | gbdk-lib/examples/gb/large_map/large_map.c | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gbdk-lib/examples/gb/large_map/large_map.c b/gbdk-lib/examples/gb/large_map/large_map.c @@ -36,7 +36,7 @@ void set_camera() { if (camera_x < old_camera_x) { set_bkg_submap(map_pos_x, map_pos_y, 1, MIN(19u, bigmap_mapHeight - map_pos_y), bigmap_map, bigmap_mapWidth); } else { - if ((bigmap_mapWidth - 20u) > map_pos_x) set_bkg_submap(map_pos_x + 20u, map_pos_y, 1, MIN(19u, bigmap_mapHeight - map_pos_y), bigmap_map, bigmap_mapWidth); + if ((bigmap_mapWidth - 19u) > map_pos_x) set_bkg_submap(map_pos_x + 20u, map_pos_y, 1, MIN(19u, bigmap_mapHeight - map_pos_y), bigmap_map, bigmap_mapWidth); } old_map_pos_x = map_pos_x; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.