diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-19 13:07:08 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-19 13:07:08 +0000 |
commit | 919d5a60b08bb39114d73295c59290a6c3402a76 (patch) | |
tree | b3173d271d30cfbf69c324b14daf94286219fa68 /src/map.cpp | |
parent | 360b1d4d6ca420ae98f87af166d739b34f05de22 (diff) | |
download | mana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.gz mana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.bz2 mana-919d5a60b08bb39114d73295c59290a6c3402a76.tar.xz mana-919d5a60b08bb39114d73295c59290a6c3402a76.zip |
Fixed searching for zip files in Linux, fixed initialization of PhysFS to be
before it is used and added a start on the map reader.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 7 |
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; |