Tiny fix
Saving newly made houses by the map editor is not even supported, so this is not a bug
This commit is contained in:
parent
d6105a98d1
commit
ff5c22d4c0
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue