diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-24 09:32:15 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-24 09:32:15 -0400 |
commit | 10680dfd231ea193daaa06834e19f7da7316a54c (patch) | |
tree | 575bf0f1477d6eecbf87c6f0fce6abc8d336f197 | |
parent | 91669e46f9634dbdcb453e99f1fbf24e8fbfdbe7 (diff) | |
download | ether-master.tar.gz ether-master.tar.bz2 ether-master.zip |
-rw-r--r-- | src/game.cpp | 4 |
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); |