diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-19 22:35:10 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-19 22:35:10 +0200 |
commit | dab6d6dd6d9f45435daf6634018fef3def0fe6e1 (patch) | |
tree | 751cb947cfbf76af048a05b0540bcfe0758eeea1 /src/core/SurfaceTable.cpp | |
parent | Merge branch 'master' into miami (diff) | |
parent | small stuff (diff) | |
download | re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar.gz re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar.bz2 re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar.lz re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar.xz re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.tar.zst re3-dab6d6dd6d9f45435daf6634018fef3def0fe6e1.zip |
Diffstat (limited to 'src/core/SurfaceTable.cpp')
-rw-r--r-- | src/core/SurfaceTable.cpp | 8 |
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; +} |