diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-31 15:49:58 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-31 15:49:58 -0400 |
| commit | 06d1fb3ba346d6712206e35a022afcb340b434fd (patch) | |
| tree | c37b4538251ad2949b17f04f29f16847572666ee | |
| parent | e8420d47578b3ba5ce83238ee8f61c747cdf2521 (diff) | |
| download | ether-06d1fb3ba346d6712206e35a022afcb340b434fd.tar.gz ether-06d1fb3ba346d6712206e35a022afcb340b434fd.tar.bz2 ether-06d1fb3ba346d6712206e35a022afcb340b434fd.zip | |
player won't start in the middle of a wall
| -rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/main.cpp b/src/main.cpp index 2d8adf0..77c4510 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -608,6 +608,15 @@ int main(int, char**) | |||
| 608 | 608 | ||
| 609 | tick(game); | 609 | tick(game); |
| 610 | tick(game); | 610 | tick(game); |
| 611 | |||
| 612 | for (int y = -1; y <= 1; y++) | ||
| 613 | { | ||
| 614 | for (int x = -1; x <= 1; x++) | ||
| 615 | { | ||
| 616 | game.map.at(x,y).tile = Tile::Floor; | ||
| 617 | } | ||
| 618 | } | ||
| 619 | |||
| 611 | tick(game); | 620 | tick(game); |
| 612 | 621 | ||
| 613 | bool quit = false; | 622 | bool quit = false; |
