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.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index e9a9fbe..7c67daa 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -119,11 +119,7 @@ void Game::tick(bool onlyDark)
119 119
120bool Game::movePlayer(int x, int y) 120bool Game::movePlayer(int x, int y)
121{ 121{
122 if (/*x >= curBoundX && 122 if (map.at(x,y).tile == Tile::Floor)
123 y >= curBoundY &&
124 x < curBoundX + curZoom * ZOOM_X_FACTOR &&
125 y < curBoundY + curZoom * ZOOM_Y_FACTOR &&*/
126 map.at(x,y).tile == Tile::Floor)
127 { 123 {
128 if (map.at(player_x, player_y).tile == Tile::Floor) 124 if (map.at(player_x, player_y).tile == Tile::Floor)
129 { 125 {
@@ -249,6 +245,7 @@ void Game::recalculateLighting()
249 } 245 }
250 } 246 }
251 247
248 litSpots += map.getUnloadedLitTiles();
252 dirtyLighting = false; 249 dirtyLighting = false;
253} 250}
254 251