mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
This commit is contained in:
AI
client
lib
CGameInfoCallback.cpp
gameState
mapObjects
CGCreature.cppCGHeroInstance.cppCGObjectInstance.cppCGObjectInstance.hCGTownInstance.cppCGTownInstance.hCQuest.cppIObjectInterface.cppIObjectInterface.hMiscObjects.cppTownBuildingInstance.cppTownBuildingInstance.h
mapping
networkPacks
rmg
spells
mapeditor
server
@ -1072,7 +1072,7 @@ void CMapLoaderJson::MapObjectLoader::construct()
|
||||
|
||||
instance->id = ObjectInstanceID(static_cast<si32>(owner->map->objects.size()));
|
||||
instance->instanceName = jsonKey;
|
||||
instance->pos = pos;
|
||||
instance->setAnchorPos(pos);
|
||||
owner->map->addNewObject(instance);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user