diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-04 18:51:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 18:51:56 +0200 |
commit | 3554ec58bb41f322dda5699d6b485b47038debda (patch) | |
tree | 9426c3e7397ec950589d4787c95dfcbf47524a91 /src/entities | |
parent | fixed fog color for librw (diff) | |
parent | GTA_ZONECULL define (diff) | |
download | re3-3554ec58bb41f322dda5699d6b485b47038debda.tar re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.gz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.bz2 re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.lz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.xz re3-3554ec58bb41f322dda5699d6b485b47038debda.tar.zst re3-3554ec58bb41f322dda5699d6b485b47038debda.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Physical.cpp | 2 | ||||
-rw-r--r-- | src/entities/Treadable.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index 842104a4..af08ced6 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -267,6 +267,7 @@ void CPhysical::AddCollisionRecord_Treadable(CEntity *ent) { if(ent->IsBuilding() && ((CBuilding*)ent)->GetIsATreadable()){ +#ifndef MIAMI CTreadable *t = (CTreadable*)ent; if(t->m_nodeIndices[PATH_PED][0] >= 0 || t->m_nodeIndices[PATH_PED][1] >= 0 || @@ -278,6 +279,7 @@ CPhysical::AddCollisionRecord_Treadable(CEntity *ent) t->m_nodeIndices[PATH_CAR][2] >= 0 || t->m_nodeIndices[PATH_CAR][3] >= 0) m_treadable[PATH_CAR] = t; +#endif } } diff --git a/src/entities/Treadable.h b/src/entities/Treadable.h index 9e4de59a..78f69c8a 100644 --- a/src/entities/Treadable.h +++ b/src/entities/Treadable.h @@ -8,8 +8,12 @@ public: static void *operator new(size_t); static void operator delete(void*, size_t); +#ifndef MIAMI int16 m_nodeIndices[2][12]; // first car, then ped +#endif bool GetIsATreadable(void) { return true; } }; +#ifndef MIAMI static_assert(sizeof(CTreadable) == 0x94, "CTreadable: error"); +#endif |