This commit is contained in:
Christoph Oelckers 2016-04-13 19:33:56 +02:00
commit 812cdc86fb

View file

@ -1248,7 +1248,7 @@ void R_AddSprites (sector_t *sec, int lightlevel, int fakeside)
FIntCVar *cvar = thing->GetClass()->distancecheck;
if (cvar != NULL && *cvar >= 0)
{
double dist = (thing->PosRelative(viewsector) - ViewPos).LengthSquared();
double dist = (thing->Pos() - ViewPos).LengthSquared();
double check = (double)**cvar;
if (dist >= check * check)
{