summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2c2b6dd..2af62b7 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -96,6 +96,9 @@ inline void tickIndividual(Game& game, std::vector<Tile>& mapDoubleBuffer, int x
96 } else { 96 } else {
97 mapDoubleBuffer[tempIndex] = Tile::Floor; 97 mapDoubleBuffer[tempIndex] = Tile::Floor;
98 } 98 }
99 if (x == game.player_x && y == game.player_y) {
100 mapDoubleBuffer[tempIndex] = Tile::Floor;
101 }
99 102
100 if (mapDoubleBuffer[tempIndex] != game.map.tile(x,y)) { 103 if (mapDoubleBuffer[tempIndex] != game.map.tile(x,y)) {
101 game.map.at(x,y).dirtyRender = true; 104 game.map.at(x,y).dirtyRender = true;
@@ -415,6 +418,7 @@ void Game::recalculateRender() {
415 wallRenders[0b10011101] = TilesetIndex(16, 14); 418 wallRenders[0b10011101] = TilesetIndex(16, 14);
416 wallRenders[0b01011110] = TilesetIndex(16, 14); 419 wallRenders[0b01011110] = TilesetIndex(16, 14);
417 wallRenders[0b10011100] = TilesetIndex(16, 14); 420 wallRenders[0b10011100] = TilesetIndex(16, 14);
421 wallRenders[0b10111110] = TilesetIndex(16, 14);
418 422
419 wallRenders[0b00011111] = TilesetIndex(17, 14); 423 wallRenders[0b00011111] = TilesetIndex(17, 14);
420 wallRenders[0b10011111] = TilesetIndex(17, 14); 424 wallRenders[0b10011111] = TilesetIndex(17, 14);