summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 76fba34a..2c7524a4 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -94,6 +94,13 @@ Map::Map():
tiles = new Tile[width * height];
}
+Map::Map(int width, int height):
+ width(width), height(height),
+ onClosedList(1), onOpenList(2)
+{
+ tiles = new Tile[width * height];
+}
+
Map::~Map()
{
delete[] tiles;