浏览代码

Hackfix for ghost stack draw.

AlexVinS 9 年之前
父节点
当前提交
ace52cfdb1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/battle/CBattleInterface.cpp

+ 2 - 1
client/battle/CBattleInterface.cpp

@@ -3435,7 +3435,8 @@ BattleObjectsByHex CBattleInterface::sortObjectsByHex()
 					sorted.hex[getCurrentPosition(stack)].alive.push_back(stack);
 			}
 		}
-		else
+		//FIXME: hack to ignore ghost stacks
+		else if(!(creAnims[stack->ID]->getType() == CCreatureAnim::DEAD && stack->isGhost()))
 			sorted.hex[stack->position].dead.push_back(stack);
 	}