Explorar el Código

Hackfix for ghost stack draw.

AlexVinS hace 9 años
padre
commit
ace52cfdb1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
 	}