浏览代码

A better tweak.

Michał W. Urbańczyk 13 年之前
父节点
当前提交
b0371597cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/BattleInterface/CBattleInterface.cpp

+ 1 - 1
client/BattleInterface/CBattleInterface.cpp

@@ -907,7 +907,7 @@ void CBattleInterface::showObstacles(std::multimap<BattleHex, int> *hexToObstacl
 		std::vector<Cimage> &images = idToObstacle[curOb.ID]->ourImages; //reference to animation of obstacle
 		Rect r = hexPosition(hex);
 		int offset = images.front().bitmap->h % 42;
-		if(offset > 7) //experimental value, may need tweaking if some obstacles are shown too low/high
+		if(curOb.getInfo().blockedTiles.front() < 0)
 			offset -= 42;
 
 		r.y += 42 - images.front().bitmap->h + offset;