Skip to content

Commit

Permalink
Merge pull request #478 from zer0k-z/tpanglefix-perf
Browse files Browse the repository at this point in the history
No longer update memory access for tp angle byte patching
  • Loading branch information
zealain authored Apr 19, 2024
2 parents 1705850 + c3045fb commit e03f7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/gokz-tpanglefix.sp
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ void PatchAngleFix()
{
if (LoadFromAddress(gA_ViewAnglePatchAddress, NumberType_Int8) == 0)
{
StoreToAddress(gA_ViewAnglePatchAddress, 1, NumberType_Int8);
StoreToAddress(gA_ViewAnglePatchAddress, 1, NumberType_Int8, false);
}
}

void RestoreAngleFix()
{
if (LoadFromAddress(gA_ViewAnglePatchAddress, NumberType_Int8) == 1)
{
StoreToAddress(gA_ViewAnglePatchAddress, 0, NumberType_Int8);
StoreToAddress(gA_ViewAnglePatchAddress, 0, NumberType_Int8, false);
}
}

Expand Down

0 comments on commit e03f7cc

Please sign in to comment.