Tipp: How to fix that EntityVisible Bug

Blitz3D Forums/Blitz3D Programming/Tipp: How to fix that EntityVisible Bug

Ok, as I said, I am not shure if this is only a mistake in my code, so maybe the title was probably a bad choice. Well, I decided to turn on the flares when they are near the camera range. Since I project their Screen coords anyway, I can also turn them on when they are somehow near EntityInView. This way I can completely replace the EntityInView Command (where x and y are the projected coords):
if x>-200 and y>-200 and x<graphicswidth()+200 and y< graphicsheight()+200 then

This is only possible cause ProjectedX() is capable of negative values for offscreen coords.
But "200" should be a variable that is screen resolution dependent.