aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;