diff --git a/Client/game_sa/CVehicleSA.cpp b/Client/game_sa/CVehicleSA.cpp index 779661ed8a..b4e7a2c438 100644 --- a/Client/game_sa/CVehicleSA.cpp +++ b/Client/game_sa/CVehicleSA.cpp @@ -1592,9 +1592,10 @@ bool CVehicleSA::SpawnFlyingComponent(const eCarNodes& nodeIndex, const eCarComp if (removalTime <= -1 || !componentObject) return true; - std::uint32_t CTimer_ms = *reinterpret_cast(VAR_CTimer_snTimeInMilliseconds); - componentObject->uiObjectRemovalTime = CTimer_ms + static_cast(removalTime); + // Set double-sided + componentObject->bBackfaceCulled = true; + componentObject->uiObjectRemovalTime = pGame->GetSystemTime() + static_cast(removalTime); return true; } diff --git a/Client/game_sa/CVehicleSA.h b/Client/game_sa/CVehicleSA.h index 382a071ac1..9674a165cd 100644 --- a/Client/game_sa/CVehicleSA.h +++ b/Client/game_sa/CVehicleSA.h @@ -106,8 +106,6 @@ struct RwTexture; #define OFFSET_CBike_Nodes 0x5A0 #define OFFSET_CBoat_Nodes 0x5B0 -#define VAR_CTimer_snTimeInMilliseconds 0xB7CB84 - struct SRailNodeSA { short sX; // x coordinate times 8