Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
mutatis mutandis
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneralGuy4872 committed Jan 1, 2020
1 parent 6d520c9 commit 5ebbfd2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/bresenham.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ if ( (fabs(deltay) ≤ 1.0) && (fabs(deltaz) ≤ 1.0) ) {
forever {
output_tail = ucoordlist3__tail_push_int(output_tail,x,y,z);
errory += deltaerrory;
if (errory0.5) {y += signy;}
if (errory0.5) {
y += signy;
errory -= 1.0;}
errorz += deltaerrorz;
if (errorz0.5) {z += signz;}
x += signz;
if (errorz0.5) {
z += signz;
errorz -= 1.0;}
x += signx;

/*conditional exits below*/
if (signx < 0) {
if (xp2[0]) {return output}
} else {
Expand Down

0 comments on commit 5ebbfd2

Please sign in to comment.