De-fuck team change

This commit is contained in:
Jaime Passos 2019-12-19 00:31:13 -03:00
parent e4b4b60cb6
commit 00440224d2

View file

@ -1357,7 +1357,7 @@ boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, b
hook_p hookp;
boolean canSwitchTeam = true;
if (!gL || !(hooksAvailable[hook_TeamSwitch/8] & (1<<(hook_TeamSwitch%8))))
return 0;
return true;
lua_settop(gL, 0);