Ver código fonte

CGHeroInstance::getOutOffsets: temporary fix for boat summoning

Appropriate fix would require to get rid of convertPosition everywhere. Check issue 515 for more details.
ArseniyShestakov 10 anos atrás
pai
commit
c45cd1f4c2
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      lib/mapObjects/CGHeroInstance.cpp

+ 3 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -1102,9 +1102,11 @@ int CGHeroInstance::getBoatType() const
 
 
 void CGHeroInstance::getOutOffsets(std::vector<int3> &offsets) 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 = 
 	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)
 	};
 	};
 }
 }