aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-12 00:23:34 +1100
committerquou <quou@disroot.org>2024-10-12 00:23:34 +1100
commitc5445eb3032f2081c8cf798e03b088b64b016a1f (patch)
tree3d87331d617710bd2f7efed4e060e4a4fc2bde22
parent774886b75966a57169bfea04f004b109bba0c750 (diff)
don't stomp the collision with the battlements in the outro scene
-rw-r--r--map.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/map.c b/map.c
index b5680fa..b4087fe 100644
--- a/map.c
+++ b/map.c
@@ -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;