mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +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 *sc= map->getSurfaceCell(Map::toSurfCoords(unit->getPos()));
|
||||||
const SurfaceCell *tsc= map->getSurfaceCell(Map::toSurfCoords(unit->getTargetPos()));
|
const SurfaceCell *tsc= map->getSurfaceCell(Map::toSurfCoords(unit->getTargetPos()));
|
||||||
bool visible= sc->isVisible(world->getThisTeamIndex()) || tsc->isVisible(world->getThisTeamIndex());
|
bool visible= sc->isVisible(world->getThisTeamIndex()) || tsc->isVisible(world->getThisTeamIndex());
|
||||||
|
if(visible == false && world->showWorldForPlayer(world->getThisFactionIndex()) == true) {
|
||||||
|
visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
//projectile
|
//projectile
|
||||||
if(pstProj!=NULL){
|
if(pstProj!=NULL){
|
||||||
|
Reference in New Issue
Block a user