Saving newly made houses by the map editor is not even supported, so this
is not a bug
This commit is contained in:
Ahmed Samy 2013-11-12 17:15:09 +02:00
parent d6105a98d1
commit ff5c22d4c0
3 changed files with 3 additions and 5 deletions

View File

@ -61,8 +61,7 @@ void ItemType::unserialize(const BinaryTreePtr& node)
g_things.addItemType(tmp);
}
}
}
if(g_game.getProtocolVersion() >= 960) {
} else {
if(serverId > 30000 && serverId < 30100) {
serverId -= 30000;
} else if(lastId > 99 && lastId != serverId - 1) {

View File

@ -240,8 +240,7 @@ void ThingTypeManager::parseItemType(uint16 id, TiXmlElement* elem)
addItemType(itemType);
} else
itemType = getItemType(serverId);
}
if(g_game.getProtocolVersion() >= 960) {
} else {
if(serverId > 30000 && serverId < 30100) {
serverId -= 30000;

View File

@ -119,7 +119,7 @@ public:
void setHouseId(uint32 hid) { m_houseId = hid; }
uint32 getHouseId() { return m_houseId; }
bool isHouseTile() const { return m_houseId != 0 || (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>(); }