summaryrefslogtreecommitdiffstats
path: root/src/core/SurfaceTable.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-27 15:38:12 +0200
committeraap <aap@papnet.eu>2020-07-27 15:38:12 +0200
commit2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be (patch)
tree2fce94f95b4f39656cc2dc2a76c93573793a3bea /src/core/SurfaceTable.h
parentheli fixes (diff)
downloadre3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.gz
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.bz2
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.lz
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.xz
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.zst
re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.zip
Diffstat (limited to '')
-rw-r--r--src/core/SurfaceTable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/SurfaceTable.h b/src/core/SurfaceTable.h
index 25b5e57d..1f16843d 100644
--- a/src/core/SurfaceTable.h
+++ b/src/core/SurfaceTable.h
@@ -54,6 +54,16 @@ enum
struct CColPoint;
+inline bool
+IsSeeThrough(uint8 surfType)
+{
+ switch(surfType)
+ case SURFACE_GLASS:
+ case SURFACE_TRANSPARENT_CLOTH:
+ return true;
+ return false;
+}
+
class CSurfaceTable
{
static float ms_aAdhesiveLimitTable[NUMADHESIVEGROUPS][NUMADHESIVEGROUPS];