summaryrefslogtreecommitdiffstats
path: root/src/core/SurfaceTable.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-19 21:58:00 +0200
committeraap <aap@papnet.eu>2020-08-19 21:58:00 +0200
commitbb948904b69d6a4c49c0a0fadd69e867292b1d9e (patch)
tree66e383231e7524830f39a475b40c662657e186e1 /src/core/SurfaceTable.cpp
parentupdate librw (diff)
downloadre3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar.gz
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar.bz2
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar.lz
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar.xz
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.tar.zst
re3-bb948904b69d6a4c49c0a0fadd69e867292b1d9e.zip
Diffstat (limited to '')
-rw-r--r--src/core/SurfaceTable.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/SurfaceTable.cpp b/src/core/SurfaceTable.cpp
index 9076a9a6..56cea203 100644
--- a/src/core/SurfaceTable.cpp
+++ b/src/core/SurfaceTable.cpp
@@ -6,6 +6,8 @@
#include "Collision.h"
#include "SurfaceTable.h"
+//--MIAMI: file done
+
float CSurfaceTable::ms_aAdhesiveLimitTable[NUMADHESIVEGROUPS][NUMADHESIVEGROUPS];
void
@@ -148,3 +150,9 @@ CSurfaceTable::GetAdhesiveLimit(CColPoint &colpoint)
{
return ms_aAdhesiveLimitTable[GetAdhesionGroup(colpoint.surfaceB)][GetAdhesionGroup(colpoint.surfaceA)];
}
+
+bool
+CSurfaceTable::IsSoftLanding(uint8 surf)
+{
+ return surf == SURFACE_GRASS || surf == SURFACE_SAND || surf == SURFACE_SAND_BEACH;
+}