summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dda.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dda.c b/dda.c
index d0ba4b7..677638f 100644
--- a/dda.c
+++ b/dda.c
@@ -117,17 +117,16 @@ dda (test_data_t *testdata)
e -= BIG_STEP_X * dy;
xi -= (1 << 8);
xi |= (N_GRID_X - 1);
-
- goto begin;
+ goto small;
}
}
else
{
+ small:
if (e > SMALL_STEP_X * dy)
{
e -= SMALL_STEP_X * dy;
xi--;
-
goto begin;
}
}