diff --git a/LEGO1/lego/legoomni/src/race/legoracers.cpp b/LEGO1/lego/legoomni/src/race/legoracers.cpp index f16a488c..14afc7f9 100644 --- a/LEGO1/lego/legoomni/src/race/legoracers.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracers.cpp @@ -517,11 +517,12 @@ MxResult LegoRaceCar::HitActor(LegoPathActor* p_actor, MxBool p_bool) } } - if (p_bool && m_worldSpeed != 0) { - return SUCCESS; + if (p_bool) { + return m_worldSpeed != 0 ? SUCCESS : FAILURE; + } + else { + return FAILURE; } - - return FAILURE; } } @@ -717,11 +718,12 @@ MxResult LegoJetski::HitActor(LegoPathActor* p_actor, MxBool p_bool) } } - if (p_bool && m_worldSpeed != 0) { - return SUCCESS; + if (p_bool) { + return m_worldSpeed != 0 ? SUCCESS : FAILURE; + } + else { + return FAILURE; } - - return FAILURE; } } diff --git a/LEGO1/realtime/matrix.h b/LEGO1/realtime/matrix.h index c792f4da..307f4ce5 100644 --- a/LEGO1/realtime/matrix.h +++ b/LEGO1/realtime/matrix.h @@ -52,4 +52,8 @@ class Matrix4 { const float* operator[](int idx) const { return m_data[idx]; } }; +#ifdef COMPAT_MODE +#include "matrix4d.inl.h" +#endif + #endif // MATRIX_H diff --git a/LEGO1/realtime/vector.h b/LEGO1/realtime/vector.h index defaab57..3841783f 100644 --- a/LEGO1/realtime/vector.h +++ b/LEGO1/realtime/vector.h @@ -148,4 +148,10 @@ class Vector4 : public Vector3 { friend class Mx4DPointFloat; }; +#ifdef COMPAT_MODE +#include "vector2d.inl.h" +#include "vector3d.inl.h" +#include "vector4d.inl.h" +#endif + #endif // VECTOR_H diff --git a/LEGO1/realtime/vector4d.inl.h b/LEGO1/realtime/vector4d.inl.h index a94e8f09..7bfce62d 100644 --- a/LEGO1/realtime/vector4d.inl.h +++ b/LEGO1/realtime/vector4d.inl.h @@ -3,6 +3,9 @@ #include "vector.h" +#include +#include + // FUNCTION: LEGO1 0x10002870 void Vector4::AddImpl(const float* p_value) {