Skip to content

Commit f1991d0

Browse files
authored
Small improvements for #3592 (#3792)
1 parent d2f62b8 commit f1991d0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Client/game_sa/CVehicleSA.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,9 +1592,10 @@ bool CVehicleSA::SpawnFlyingComponent(const eCarNodes& nodeIndex, const eCarComp
15921592
if (removalTime <= -1 || !componentObject)
15931593
return true;
15941594

1595-
std::uint32_t CTimer_ms = *reinterpret_cast<std::uint32_t*>(VAR_CTimer_snTimeInMilliseconds);
1596-
componentObject->uiObjectRemovalTime = CTimer_ms + static_cast<std::uint32_t>(removalTime);
1595+
// Set double-sided
1596+
componentObject->bBackfaceCulled = true;
15971597

1598+
componentObject->uiObjectRemovalTime = pGame->GetSystemTime() + static_cast<std::uint32_t>(removalTime);
15981599
return true;
15991600
}
16001601

Client/game_sa/CVehicleSA.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ struct RwTexture;
106106
#define OFFSET_CBike_Nodes 0x5A0
107107
#define OFFSET_CBoat_Nodes 0x5B0
108108

109-
#define VAR_CTimer_snTimeInMilliseconds 0xB7CB84
110-
111109
struct SRailNodeSA
112110
{
113111
short sX; // x coordinate times 8

0 commit comments

Comments
 (0)