- fixed coordinate typo.

This commit is contained in:
Christoph Oelckers 2016-04-29 23:14:04 +02:00
parent b9687b4a57
commit 8309d8f634

View file

@ -6446,7 +6446,7 @@ void AActor::UpdateRenderSectorList()
if (PortalBlockmap.containsLines && Pos().XY() != OldRenderPos.XY()) if (PortalBlockmap.containsLines && Pos().XY() != OldRenderPos.XY())
{ {
int bx = GetBlockX(X()); int bx = GetBlockX(X());
int by = GetBlockX(Y()); int by = GetBlockY(Y());
FBoundingBox bb(X(), Y(), MIN(radius*1.5, 128.)); // Don't go further than 128 map units, even for large actors FBoundingBox bb(X(), Y(), MIN(radius*1.5, 128.)); // Don't go further than 128 map units, even for large actors
// Are there any portals near the actor's position? // Are there any portals near the actor's position?
if (bx >= 0 && by >= 0 && bx < bmapwidth && by < bmapheight && PortalBlockmap(bx, by).neighborContainsLines) if (bx >= 0 && by >= 0 && bx < bmapwidth && by < bmapheight && PortalBlockmap(bx, by).neighborContainsLines)