Skip to content

Commit

Permalink
Prevent function trigger outside proper gamemode
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon committed Aug 7, 2024
1 parent 2db6a6f commit 0f971dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scripts/vscripts/mp/levels/payload_maps.nut
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ global function PayloadCallback_MapInit

void function PayloadCallback_MapInit()
{
if( IsLobby() ) // Don't wanna this to trigger on menus
if( IsLobby() || GameRules_GetGameMode() != GAMEMODE_PLD ) // Don't wanna this to trigger on menus nor outside payload mode itself
return

switch ( GetMapName() )
Expand Down

0 comments on commit 0f971dc

Please sign in to comment.