diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-21 13:42:51 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-21 13:42:51 -0400 |
commit | dfae5ac251994a3f25f7473197f716148374e7ca (patch) | |
tree | ecebfac41873c0392f08c18f03013f966a5d9ce7 /src/game.cpp | |
parent | 9b7e38746fd8fd645f5c766dab78fe331ebea47d (diff) | |
download | ether-dfae5ac251994a3f25f7473197f716148374e7ca.tar.gz ether-dfae5ac251994a3f25f7473197f716148374e7ca.tar.bz2 ether-dfae5ac251994a3f25f7473197f716148374e7ca.zip |
player starts in the middle of first chunk now
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index edc1605..b5d667a 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -26,9 +26,9 @@ Game::Game(std::mt19937& rng, Muxer& muxer, Renderer& renderer) : | |||
26 | tick(); | 26 | tick(); |
27 | tick(); | 27 | tick(); |
28 | 28 | ||
29 | for (int y = -1; y <= 1; y++) | 29 | for (int y = player_y-1; y <= player_y+1; y++) |
30 | { | 30 | { |
31 | for (int x = -1; x <= 1; x++) | 31 | for (int x = player_x-1; x <= player_x+1; x++) |
32 | { | 32 | { |
33 | map.tile(x,y) = Tile::Floor; | 33 | map.tile(x,y) = Tile::Floor; |
34 | } | 34 | } |