summaryrefslogtreecommitdiff
path: root/common/tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/tile.cpp')
-rw-r--r--common/tile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/tile.cpp b/common/tile.cpp
index bf39a4e..f5e1ee4 100644
--- a/common/tile.cpp
+++ b/common/tile.cpp
@@ -4,10 +4,11 @@ Tile::Tile() {
}
-Tile::Tile(Tile::Type t) : type(t) {
+Tile::Tile(Tile::Type t, Tile::Flags f) : type(t), flags(f) {
}
-Tile::Tile(uint8_t b) : type((Type)b) {
-
+Tile::Tile(uint16_t w) {
+ type = Type(w & 0x00ff);
+ flags = Flags(w >> 8);
}