Skip to content

Commit

Permalink
working PreventBunnyJumping on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Apr 19, 2024
1 parent 7ce6233 commit 5421c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/shavit-core.sp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public void OnAdminMenuReady(Handle topmenu)

void LoadDHooks()
{
Handle gamedataConf = LoadGameConfigFile("shavit.games");
GameData gamedataConf = LoadGameConfigFile("shavit.games");

if(gamedataConf == null)
{
Expand Down Expand Up @@ -550,7 +550,7 @@ void LoadDHooks()
}
else if (gEV_Type == Engine_TF2 && !gB_Linux)
{
gI_TF2PreventBunnyJumpingAddr = GameConfGetAddress(gamedataConf, "CTFGameMovement::PreventBunnyJumping");
gI_TF2PreventBunnyJumpingAddr = gamedataConf.GetMemSig("CTFGameMovement::PreventBunnyJumping");

if (gI_TF2PreventBunnyJumpingAddr == Address_Null)
{
Expand Down

0 comments on commit 5421c60

Please sign in to comment.