Missiles now Drawn Under Fog of War, not Over.

This commit is contained in:
mr-russ 2003-01-06 02:06:33 +00:00
parent 9cce859dd4
commit 9fc0bc0976

View file

@ -718,6 +718,12 @@ local int MissileVisibleInViewport(const Viewport* vp, const Missile* missile)
}
DebugLevel3Fn("Missile bounding box %d %d %d %d\n" _C_ min_x _C_ max_x _C_
min_y _C_ max_y);
if( !IsMapFieldVisible((missile->X-TileSizeX/2)/TileSizeX,
(missile->Y-TileSizeY/2)/TileSizeY)) {
return 0;
}
return 1;
}