summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ray.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-09 10:15:39 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-09 10:15:39 +0200
commit477b8798b39a01bf4a73697eefe0ae131a12d47d (patch)
tree7bde0d5202af26946bf0b3d7fca3b767291332df /crawl-ref/source/ray.h
parentf54c573cd027fc1c86e206ada722ce8a76525f4a (diff)
downloadcrawl-ref-477b8798b39a01bf4a73697eefe0ae131a12d47d.tar.gz
crawl-ref-477b8798b39a01bf4a73697eefe0ae131a12d47d.zip
Initialize ray.full_idx to -1 and remove outdated(?) valgrind intialization lines.
Diffstat (limited to 'crawl-ref/source/ray.h')
-rw-r--r--crawl-ref/source/ray.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h
index 617385f5eb..8816c20171 100644
--- a/crawl-ref/source/ray.h
+++ b/crawl-ref/source/ray.h
@@ -16,12 +16,8 @@ public:
double accx;
double accy;
double slope;
- // Quadrant 1: down-right
- // Quadrant 2: down-left
- // Quadrant 3: up-left
- // Quadrant 4: up-right
- int quadrant;
- int fullray_idx; // for cycling: where did we come from?
+ int quadrant; // 0 down-right, 1 down-left, 2 up-left, 3 up-right
+ int fullray_idx; // for cycling: where did we come from?
public:
ray_def();