From 10680dfd231ea193daaa06834e19f7da7316a54c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 24 Mar 2022 09:32:15 -0400 Subject: player should always be on floor --- src/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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& mapDoubleBuffer, int x } else { mapDoubleBuffer[tempIndex] = Tile::Floor; } + if (x == game.player_x && y == game.player_y) { + mapDoubleBuffer[tempIndex] = Tile::Floor; + } if (mapDoubleBuffer[tempIndex] != game.map.tile(x,y)) { game.map.at(x,y).dirtyRender = true; @@ -415,6 +418,7 @@ void Game::recalculateRender() { wallRenders[0b10011101] = TilesetIndex(16, 14); wallRenders[0b01011110] = TilesetIndex(16, 14); wallRenders[0b10011100] = TilesetIndex(16, 14); + wallRenders[0b10111110] = TilesetIndex(16, 14); wallRenders[0b00011111] = TilesetIndex(17, 14); wallRenders[0b10011111] = TilesetIndex(17, 14); -- cgit 1.4.1