mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- bugfix for observers to see water effects
This commit is contained in:
parent
ab7cf4d22b
commit
1c558abef0
@ -2652,7 +2652,13 @@ void Renderer::renderWaterEffects(){
|
||||
//render only if visible
|
||||
Vec2i intPos= Vec2i(static_cast<int>(ws->getPos().x), static_cast<int>(ws->getPos().y));
|
||||
const Vec2i &mapPos = Map::toSurfCoords(intPos);
|
||||
if(map->getSurfaceCell(mapPos)->isVisible(world->getThisTeamIndex())){
|
||||
|
||||
bool visible = map->getSurfaceCell(mapPos)->isVisible(world->getThisTeamIndex());
|
||||
if(visible == false && world->showWorldForPlayer(world->getThisFactionIndex()) == true) {
|
||||
visible = true;
|
||||
}
|
||||
|
||||
if(visible == true) {
|
||||
|
||||
float scale= ws->getAnim()*ws->getSize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user