瀏覽代碼

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 年之前
父節點
當前提交
c45cd1f4c2
共有 1 個文件被更改,包括 3 次插入1 次删除
  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
 {
+	// 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)
 	};
 }