Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 3018c5b

Browse files
committed
Unscrew screwup
1 parent 491296f commit 3018c5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Entities/AtomGroup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ namespace RTE {
799799
delta[X] = nextPosition.GetFloorIntX() - intPos[X];
800800
delta[Y] = nextPosition.GetFloorIntY() - intPos[Y];
801801

802+
hit[X] = false;
803+
hit[Y] = false;
804+
802805
if (delta[X] == 0 && delta[Y] == 0) {
803806
break;
804807
}
@@ -845,9 +848,6 @@ namespace RTE {
845848
if (delta[X] > 1000) { delta[X] = 1000; }
846849
if (delta[Y] > 1000) { delta[Y] = 1000; }
847850

848-
hit[X] = false;
849-
hit[Y] = false;
850-
851851
// Bresenham's line drawing algorithm execution
852852
for (int domSteps = 0; domSteps < delta[dom] && !(hit[X] || hit[Y]); ++domSteps) {
853853
if (subStepped) { ++subSteps; }

0 commit comments

Comments
 (0)