- removed portal check for distance check in GL code.

This commit is contained in:
Christoph Oelckers 2016-04-13 19:33:45 +02:00
parent d657692229
commit bffb7444a0

View file

@ -342,7 +342,7 @@ static inline void RenderThings(subsector_t * sub, sector_t * sector)
FIntCVar *cvar = thing->GetClass()->distancecheck; FIntCVar *cvar = thing->GetClass()->distancecheck;
if (cvar != NULL && *cvar >= 0) if (cvar != NULL && *cvar >= 0)
{ {
double dist = (thing->PosRelative(viewsector) - ViewPos).LengthSquared(); double dist = (thing->Pos() - ViewPos).LengthSquared();
double check = (double)**cvar; double check = (double)**cvar;
if (dist >= check * check) if (dist >= check * check)
{ {