1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

CGHeroInstance::getOutOffsets: temporary fix for boat summoning

Appropriate fix would require to get rid of convertPosition everywhere. Check issue 515 for more details.
This commit is contained in:
ArseniyShestakov
2015-11-26 10:55:02 +03:00
parent 64c6d3c950
commit c45cd1f4c2

View File

@@ -1102,9 +1102,11 @@ int CGHeroInstance::getBoatType() const
void CGHeroInstance::getOutOffsets(std::vector<int3> &offsets) const
{
// FIXME: Offsets need to be fixed once we get rid of convertPosition
// Check issue 515 for details
offsets =
{
int3(0,1,0), int3(0,-1,0), int3(-1,0,0), int3(+1,0,0), int3(1,1,0), int3(-1,1,0), int3(1,-1,0), int3(-1,-1,0)
int3(-1,1,0), int3(-1,-1,0), int3(-2,0,0), int3(0,0,0), int3(0,1,0), int3(-2,1,0), int3(0,-1,0), int3(-2,-1,0)
};
}