Skip to content

Commit

Permalink
Fix terrain regeneration
Browse files Browse the repository at this point in the history
How did this even work in the first place?
  • Loading branch information
commandblockguy committed Nov 24, 2020
1 parent 934dc1e commit 7f21628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ bool start_mission(const serialized_tank_t *ser_tanks) {

for(uint8_t x = 1; x < LEVEL_SIZE_X - 1; x++) {
for(uint8_t y = 1; y < LEVEL_SIZE_Y - 1; y++) {
if(tiles[y][x] == DESTROYED)
tiles[y][x] = DESTRUCTIBLE;
if(TILE_TYPE(tiles[y][x]) == DESTROYED)
tiles[y][x] = TILE_HEIGHT(tiles[y][x]) | DESTRUCTIBLE;
}
}

Expand Down

0 comments on commit 7f21628

Please sign in to comment.