diff options
-rw-r--r-- | maps/lvl5/dng.map | 16 | ||||
-rw-r--r-- | src/CApi.h | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/maps/lvl5/dng.map b/maps/lvl5/dng.map new file mode 100644 index 0000000..0ad94ca --- /dev/null +++ b/maps/lvl5/dng.map @@ -0,0 +1,16 @@ +w w w w w w w w w +w 0 0 0 0 a 0 2 w +w p 0 0 0 w w w w +w 0 0 0 0 b 0 3 w +w 0 0 0 0 w w w w +w 0 0 0 0 c 0 4 w +w 0 0 0 0 w w w w +w 0 0 0 0 d 1 t w +w 0 0 0 0 w w w w +w 0 0 0 0 d 0 4 w +w 0 0 0 0 w w w w +w 0 0 0 0 a 0 t w +w 0 0 0 0 w w w w +w 0 0 0 0 w w w w +w 0 0 0 0 0 0 1 w +w w w w w w w w w @@ -236,9 +236,9 @@ static int c_open_door(lua_State *L) { can_open = true; // erase key lvl->heldKeys.erase(lvl->heldKeys.begin() + k); - lvl->doorPositions.erase(lvl->doorPositions.begin() + i); lvl->map[lvl->doorPositions[i].y][lvl->doorPositions[i].x] = BLANK_SPACE; + lvl->doorPositions.erase(lvl->doorPositions.begin() + i); break; } } |