mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Remove quests from CMap, now solely owned by quest objects
This commit is contained in:
@@ -77,17 +77,7 @@ si32 MapObjectResolver::decode(const std::string & identifier) const
|
||||
|
||||
std::string MapObjectResolver::encode(si32 identifier) const
|
||||
{
|
||||
ObjectInstanceID id;
|
||||
|
||||
//use h3m questIdentifiers if they are present
|
||||
if(owner->map->questIdentifierToId.empty())
|
||||
{
|
||||
id = ObjectInstanceID(identifier);
|
||||
}
|
||||
else
|
||||
{
|
||||
id = owner->map->questIdentifierToId[identifier];
|
||||
}
|
||||
ObjectInstanceID id(identifier);
|
||||
|
||||
auto object = owner->map->getObject(id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user