1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Do not place object visible tiles over the top of the map.

This commit is contained in:
Tomasz Zieliński
2023-04-10 19:26:53 +02:00
parent 9ea746a68c
commit 3c87b3934d
7 changed files with 57 additions and 1 deletions

View File

@ -133,6 +133,11 @@ int3 CGObjectInstance::getPosition() const
return pos;
}
int3 CGObjectInstance::getTopVisiblePos() const
{
return pos - appearance->getTopVisibleOffset();
}
void CGObjectInstance::setOwner(const PlayerColor & ow)
{
tempOwner = ow;