Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Regynate committed Jan 4, 2025
1 parent d0bde84 commit d1eac03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions ChaosMod/Effects/db/Misc/MiscRampJam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

static void OnTick()
{
auto playerPed = PLAYER_PED_ID();
auto veh = GET_VEHICLE_PED_IS_IN(playerPed, false);
if (!IS_PED_IN_ANY_VEHICLE(playerPed, false) || !IS_VEHICLE_ON_ALL_WHEELS(veh))
auto player = PLAYER_PED_ID();
auto veh = GET_VEHICLE_PED_IS_IN(player, false);
if (!IS_PED_IN_ANY_VEHICLE(player, false) || !IS_VEHICLE_ON_ALL_WHEELS(veh))
{
return;
}
Expand Down
17 changes: 7 additions & 10 deletions ChaosMod/Effects/db/Screen/Shaders/ScreenShaderHueShift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static const char *ms_szShaderSrcSuffix = R"SRC(;

static void OnStart()
{
Hooks::OverrideShader(OverrideShaderType::LensDistortion, ms_szShaderSrcPrefix
Hooks::OverrideShader(EOverrideShaderType::LensDistortion, ms_szShaderSrcPrefix
+ std::to_string(g_Random.GetRandomFloat(20.f, 340.f))
+ ms_szShaderSrcSuffix);
}
Expand All @@ -46,12 +46,9 @@ static void OnStop()
}

//clang-format off
REGISTER_EFFECT(OnStart, OnStop, nullptr, EffectInfo
{
.Name = "Hue Shift",
.Id = "screen_hueshift",
.IsTimed = true,
.EffectCategory = EffectCategory::Shader,
.EffectGroupType = EffectGroupType::Shader
}
);
REGISTER_EFFECT(OnStart, OnStop, nullptr,
EffectInfo { .Name = "Hue Shift",
.Id = "screen_hueshift",
.IsTimed = true,
.EffectCategory = EEffectCategory::Shader,
.EffectGroupType = EEffectGroupType::Shader });

0 comments on commit d1eac03

Please sign in to comment.