Browse Source

Hackfix for ghost stack draw.

AlexVinS 9 năm trước cách đây
mục cha
commit
ace52cfdb1

+ 2 - 1
client/battle/CBattleInterface.cpp

@@ -3435,7 +3435,8 @@ BattleObjectsByHex CBattleInterface::sortObjectsByHex()
 					sorted.hex[getCurrentPosition(stack)].alive.push_back(stack);
 					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);
 			sorted.hex[stack->position].dead.push_back(stack);
 	}
 	}