From ab7cf4d22b476b055d43638d296a2b1fb57f398a Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 27 Jan 2011 22:10:44 +0000 Subject: [PATCH] - a cup of tea for m0llemeister (bugfix for observers to see attack particles) --- source/glest_game/world/unit_updater.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index 2285a419..4858c713 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -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){