diff options
author | quou <quou@disroot.org> | 2024-10-12 00:23:34 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-12 00:23:34 +1100 |
commit | c5445eb3032f2081c8cf798e03b088b64b016a1f (patch) | |
tree | 3d87331d617710bd2f7efed4e060e4a4fc2bde22 | |
parent | 774886b75966a57169bfea04f004b109bba0c750 (diff) |
don't stomp the collision with the battlements in the outro scene
-rw-r--r-- | map.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -314,17 +314,17 @@ void generate_outro(Map* m, struct World* w) { m->tiles[i] = null_tile; m->collision[i] = 0; } - for (i = 0; i < map_h; i++) { - int y = i * map_w; - m->collision[y + (map_w - 1)] = 1; - m->collision[y] = 1; - } for (j = 10; j < map_h; j++) for (i = 0; i < map_w; i++) place(tile_brick, 1, i, j); for (i = 0; i < map_w; i++) if (i & 1) place(tile_brick_floor, 0, i, 9); + for (i = 0; i < map_h; i++) { + int y = i * map_w; + m->collision[y + (map_w - 1)] = 1; + m->collision[y] = 1; + } w->player.x = (map_w >> 1) << fbits; w->player.x *= map_tile_size; w->player.x += (map_tile_size >> 1) << fbits; |