mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Unified interface for object template.
This commit is contained in:
@@ -329,7 +329,7 @@ int3 ObjectTemplate::getBlockMapOffset() const
|
||||
for(int h = 0; h < getHeight(); ++h)
|
||||
{
|
||||
if (isBlockedAt(w, h))
|
||||
return int3(-w, -h, 0);
|
||||
return int3(w, h, 0);
|
||||
}
|
||||
}
|
||||
return int3(-1,-1,-1);
|
||||
|
||||
Reference in New Issue
Block a user