Skip to content

Commit 076b44d

Browse files
authored
Further camera-follow NaN adjustments (artificial) (#4823)
1 parent 69cde88 commit 076b44d

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

Client/game_sa/CVehicleSA.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,10 +1928,7 @@ void CVehicleSA::RecalculateSuspensionLines()
19281928
if (!pModelInfo)
19291929
return;
19301930

1931-
// Parenthesise the precedence to match the original intent: only proceed
1932-
// for monster trucks or cars. The bareword `pModelInfo && X || Y` parsed
1933-
// as `(pModelInfo && X) || Y`, which let a null pModelInfo fall through
1934-
// to the IsCar() deref below on pure-car paths.
1931+
// Only cars and monster trucks use this suspension setup path.
19351932
if ((pModelInfo->IsMonsterTruck() || pModelInfo->IsCar()))
19361933
{
19371934
// Trains (Their trailers do as well!)

Client/multiplayer_sa/CMultiplayerSA.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <game/CPedDamageResponse.h>
1717
#include <game/CEventList.h>
1818
#include <game/CEventDamage.h>
19-
#include "../game_sa/CCamSA.h"
2019
#include <cmath>
2120

2221
class CEventDamageSAInterface;

0 commit comments

Comments
 (0)