1
0
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:
DjWarmonger
2015-03-12 08:31:30 +01:00
parent e0134342c8
commit f894abe494
3 changed files with 12 additions and 5 deletions

View File

@@ -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);