mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-07-18 09:27:56 +08:00
adjust special infected shotgun scaling
also explicitly specifying value type seems to be good practice to prevent unintended fraction down-rounding (just what've happened in paint.hpp with color 128 -> 127) also remove scope check i've competely forgot about in draw_crosshair.hpp
This commit is contained in:
@ -4,9 +4,9 @@ void __thiscall Redirected_Finish_Move(void* Unknown_Parameter_1, void* Player,
|
||||
{
|
||||
float X = *(float*)((unsigned __int32)Move_Data + 76);
|
||||
|
||||
if (X > 180)
|
||||
if (X > 180.f)
|
||||
{
|
||||
X -= 360;
|
||||
X -= 360.f;
|
||||
}
|
||||
|
||||
*(float*)((unsigned __int32)Move_Data + 76) = std::clamp(X, -90.f, 90.f);
|
||||
|
Reference in New Issue
Block a user