mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
- a cup of tea for m0llemeister (bugfix for observers to see attack particles)
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user