summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/ray.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc
index 604d448c80..ca7ac771c2 100644
--- a/crawl-ref/source/ray.cc
+++ b/crawl-ref/source/ray.cc
@@ -314,23 +314,23 @@ int ray_def::raw_advance()
break;
case 1:
// going down-left
- accx = 100.0 - EPSILON_VALUE/10.0 - accx;
+ accx *= -1;
rc = _find_next_intercept();
- accx = 100.0 - EPSILON_VALUE/10.0 - accx;
+ accx *= -1;
break;
case 2:
// going up-left
- accx = 100.0 - EPSILON_VALUE/10.0 - accx;
- accy = 100.0 - EPSILON_VALUE/10.0 - accy;
+ accx *= -1;
+ accy *= -1;
rc = _find_next_intercept();
- accx = 100.0 - EPSILON_VALUE/10.0 - accx;
- accy = 100.0 - EPSILON_VALUE/10.0 - accy;
+ accx *= -1;
+ accy *= -1;
break;
case 3:
// going up-right
- accy = 100.0 - EPSILON_VALUE/10.0 - accy;
+ accy *= -1;
rc = _find_next_intercept();
- accy = 100.0 - EPSILON_VALUE/10.0 - accy;
+ accy *= -1;
break;
default:
rc = -1;