mapio: make sure we read the house tile flag
This commit is contained in:
parent
f47ea05abc
commit
63ce68b449
|
@ -137,6 +137,8 @@ void Map::loadOtbm(const std::string& fileName)
|
|||
if((_flags & TILESTATE_REFRESH) == TILESTATE_REFRESH)
|
||||
flags |= TILESTATE_REFRESH;
|
||||
|
||||
if((_flags & TILESTATE_HOUSE) == TILESTATE_HOUSE)
|
||||
flags |= TILESTATE_HOUSE;
|
||||
break;
|
||||
}
|
||||
case OTBM_ATTR_ITEM: {
|
||||
|
|
|
@ -119,7 +119,7 @@ public:
|
|||
|
||||
void setHouseId(uint32 hid) { m_houseId = hid; }
|
||||
uint32 getHouseId() { return m_houseId; }
|
||||
bool isHouseTile() const { return (m_flags & TILESTATE_HOUSE) == TILESTATE_HOUSE; }
|
||||
bool isHouseTile() const { return m_houseId != 0 && (m_flags & TILESTATE_HOUSE) == TILESTATE_HOUSE; }
|
||||
|
||||
TilePtr asTile() { return static_self_cast<Tile>(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue