summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-16 19:53:36 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-16 20:17:48 +0200
commit1241f456b2eda5565e9a5d45faf0ae692539defe (patch)
treea9eca6eb2d961febbad76d35f90261a16ec9968a /crawl-ref/source/losparam.h
parentaf4b5015512fab9e409dc8ec4128c6f63ab967c9 (diff)
downloadcrawl-ref-1241f456b2eda5565e9a5d45faf0ae692539defe.tar.gz
crawl-ref-1241f456b2eda5565e9a5d45faf0ae692539defe.zip
Generalize find_ray to accept opacity_func and bounds_func parameters.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r--crawl-ref/source/losparam.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h
index e8b59e9d1a..505d0989ff 100644
--- a/crawl-ref/source/losparam.h
+++ b/crawl-ref/source/losparam.h
@@ -6,11 +6,13 @@
#ifndef LOSPARAM_H
#define LOSPARAM_H
+// Note: find_ray relies on the fact that 2*OPC_HALF == OPC_OPAQUE.
+// On the other hand, losight tracks this explicitly.
enum opacity_type
{
- OPC_CLEAR,
- OPC_HALF, // for opaque clouds; two or more block
- OPC_OPAQUE,
+ OPC_CLEAR = 0,
+ OPC_HALF = 1, // for opaque clouds; two or more block
+ OPC_OPAQUE = 2,
NUM_OPACITIES
};