- a cup of tea for m0llemeister (bugfix for observers to see attack particles)

This commit is contained in:
Mark Vejvoda 2011-01-27 22:10:44 +00:00
parent 4cb50ca0ae
commit ab7cf4d22b
1 changed files with 3 additions and 0 deletions

View File

@ -1641,6 +1641,9 @@ void UnitUpdater::startAttackParticleSystem(Unit *unit){
const SurfaceCell *sc= map->getSurfaceCell(Map::toSurfCoords(unit->getPos()));
const SurfaceCell *tsc= map->getSurfaceCell(Map::toSurfCoords(unit->getTargetPos()));
bool visible= sc->isVisible(world->getThisTeamIndex()) || tsc->isVisible(world->getThisTeamIndex());
if(visible == false && world->showWorldForPlayer(world->getThisFactionIndex()) == true) {
visible = true;
}
//projectile
if(pstProj!=NULL){