Skip to content

Commit

Permalink
small check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Sep 5, 2024
1 parent 2f0de6a commit fe8b4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/consoleshadows.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace CShadows
return hbStoreStaticShadow.fun(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
}
}

class ConsoleShadows
{
public:
Expand Down Expand Up @@ -135,7 +136,7 @@ public:
}

// Enable player/ped shadows while in vehicles
if (bHeadlightShadows && bVehicleNightShadows && (regs.eax == 3 || regs.eax == 4))
if ((bHeadlightShadows || bVehicleNightShadows) && (regs.eax == 3 || regs.eax == 4))
{
*(uintptr_t*)(regs.esp - 4) = loc_AE376B;
return;
Expand Down

0 comments on commit fe8b4f5

Please sign in to comment.