diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-19 17:09:03 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2011-02-19 19:32:06 +0100 |
commit | 946d101429a49b656ee37ad00a927787e2d463fd (patch) | |
tree | 99623edd7ad64502efbdefcc2ad1eaf693a062b2 /src/cave.c | |
parent | 6a077f767bab67c5847e6ccf98513151462879a4 (diff) |
Remove dead (#if 0) code.
Diffstat (limited to 'src/cave.c')
-rw-r--r-- | src/cave.c | 46 |
1 files changed, 0 insertions, 46 deletions
@@ -4927,29 +4927,6 @@ void mmove2(int *y, int *x, int y1, int x1, int y2, int x2) /* Move mostly vertically */ if (dy > dx) { - -#if 0 - - int k; - - /* Starting shift factor */ - shift = dy >> 1; - - /* Extract a shift factor */ - for (k = 0; k < dist; k++) - { - if (shift <= 0) shift += dy; - shift -= dx; - } - - /* Sometimes move along minor axis */ - if (shift <= 0) (*x) = (x2 < x1) ? (*x - 1) : (*x + 1); - - /* Always move along major axis */ - (*y) = (y2 < y1) ? (*y - 1) : (*y + 1); - -#endif - /* Extract a shift factor */ shift = (dist * dx + (dy - 1) / 2) / dy; @@ -4963,29 +4940,6 @@ void mmove2(int *y, int *x, int y1, int x1, int y2, int x2) /* Move mostly horizontally */ else { - -#if 0 - - int k; - - /* Starting shift factor */ - shift = dx >> 1; - - /* Extract a shift factor */ - for (k = 0; k < dist; k++) - { - if (shift <= 0) shift += dx; - shift -= dy; - } - - /* Sometimes move along minor axis */ - if (shift <= 0) (*y) = (y2 < y1) ? (*y - 1) : (*y + 1); - - /* Always move along major axis */ - (*x) = (x2 < x1) ? (*x - 1) : (*x + 1); - -#endif - /* Extract a shift factor */ shift = (dist * dy + (dx - 1) / 2) / dx; |