This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,10 @@ namespace RTE {
1008
1008
if (hitMOID != g_NoMOID) {
1009
1009
hitData.Body [HITOR] = m_OwnerMOSR;
1010
1010
hitData.Body [HITEE] = g_MovableMan.GetMOFromID (hitMOID);
1011
+
1012
+ #ifndef RELEASE_BUILD
1011
1013
RTEAssert (hitData.Body [HITEE], " Hitee MO is 0 in AtomGroup::PushTravel!" );
1014
+ #endif
1012
1015
1013
1016
hitData.Body [HITEE]->CollideAtPoint (hitData);
1014
1017
Original file line number Diff line number Diff line change @@ -1093,8 +1093,12 @@ friend class Atom;
1093
1093
// Return value: None.
1094
1094
1095
1095
void AddImpulseForce (const Vector &impulse, const Vector &offset = Vector()) {
1096
+
1097
+ #ifndef RELEASE_BUILD
1096
1098
RTEAssert (impulse.GetLargest () < 500000 , " HUEG IMPULSE FORCE" );
1097
1099
RTEAssert (offset.GetLargest () < 5000 , " HUEG IMPULSE FORCE OFFSET" );
1100
+ #endif
1101
+
1098
1102
m_ImpulseForces.push_back (std::make_pair (impulse, offset));
1099
1103
}
1100
1104
@@ -1111,7 +1115,11 @@ friend class Atom;
1111
1115
// Return value: None.
1112
1116
1113
1117
void AddAbsImpulseForce (const Vector &impulse, const Vector &absPos) {
1118
+
1119
+ #ifndef RELEASE_BUILD
1114
1120
RTEAssert (impulse.GetLargest () < 500000 , " HUEG IMPULSE FORCE" );
1121
+ #endif
1122
+
1115
1123
m_ImpulseForces.push_back (std::make_pair (impulse, g_SceneMan.ShortestDistance (m_Pos, absPos) * c_MPP));
1116
1124
}
1117
1125
Original file line number Diff line number Diff line change @@ -300,8 +300,12 @@ namespace RTE {
300
300
301
301
m_LastHit.Body [HITOR] = m_OwnerMO;
302
302
m_LastHit.Body [HITEE] = g_MovableMan.GetMOFromID (m_MOIDHit);
303
+
304
+ #ifndef RELEASE_BUILD
303
305
RTEAssert (m_LastHit.Body [HITEE], " Hitee MO is 0 in Atom::MOHitResponse!" );
304
306
RTEAssert (m_MOIDHit == m_LastHit.Body [HITEE]->GetID (), " g_MovableMan.GetMOFromID messed up in Atom::MOHitResponse!" );
307
+ #endif
308
+
305
309
// Get the roots for both bodies
306
310
if (m_LastHit.Body [HITOR]) { m_LastHit.RootBody [HITOR] = m_LastHit.Body [HITOR]->GetRootParent (); }
307
311
if (m_LastHit.Body [HITEE]) { m_LastHit.RootBody [HITEE] = m_LastHit.Body [HITEE]->GetRootParent (); }
@@ -771,8 +775,11 @@ namespace RTE {
771
775
772
776
m_LastHit.Body [HITOR] = m_OwnerMO;
773
777
m_LastHit.Body [HITEE] = MO;
778
+
779
+ #ifndef RELEASE_BUILD
774
780
RTEAssert (m_LastHit.Body [HITEE], " Hitee MO is 0 in Atom::Travel!" );
775
781
RTEAssert (m_MOIDHit == m_LastHit.Body [HITEE]->GetID (), " g_MovableMan.GetMOFromID messed up in Atom::MOHitResponse!" );
782
+ #endif
776
783
777
784
// Don't do this normal approximation based on object centers, it causes particles to 'slide into' sprite objects when they should be resting on them.
778
785
// Orthogonal normals only, as the pixel boundaries themselves! See further down for the setting of this.
You can’t perform that action at this time.
0 commit comments