mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
boat offsets for shipyards are counted from visitable position
This commit is contained in:
@@ -953,11 +953,15 @@ BoatId 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(-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)
|
||||
offsets = {
|
||||
{0, -1, 0},
|
||||
{+1, -1, 0},
|
||||
{+1, 0, 0},
|
||||
{+1, +1, 0},
|
||||
{0, +1, 0},
|
||||
{-1, +1, 0},
|
||||
{-1, 0, 0},
|
||||
{-1, -1, 0},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user