Shadowed variable declarations whoopsie!!! uwu
This commit is contained in:
parent
6f857df5e5
commit
5da55e8b76
|
@ -95,7 +95,7 @@ boolean LUAh_FollowMobj(player_t *player, mobj_t *mobj); // Hook for P_PlayerAft
|
||||||
UINT8 LUAh_PlayerCanDamage(player_t *player, mobj_t *mobj); // Hook for P_PlayerCanDamage
|
UINT8 LUAh_PlayerCanDamage(player_t *player, mobj_t *mobj); // Hook for P_PlayerCanDamage
|
||||||
void LUAh_PlayerQuit(player_t *plr, int reason); // Hook for player quitting
|
void LUAh_PlayerQuit(player_t *plr, int reason); // Hook for player quitting
|
||||||
void LUAh_IntermissionThinker(void); // Hook for Y_Ticker
|
void LUAh_IntermissionThinker(void); // Hook for Y_Ticker
|
||||||
boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, boolean autobalance, boolean scrambled); // Hook for team switching in... uh....
|
boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, boolean tryingautobalance, boolean tryingscramble); // Hook for team switching in... uh....
|
||||||
UINT8 LUAh_ViewpointSwitch(player_t *player, player_t *newdisplayplayer); // Hook for spy mode in G_Responder
|
UINT8 LUAh_ViewpointSwitch(player_t *player, player_t *newdisplayplayer); // Hook for spy mode in G_Responder
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1352,7 +1352,7 @@ void LUAh_IntermissionThinker(void)
|
||||||
|
|
||||||
// Hook for team switching
|
// Hook for team switching
|
||||||
// It's just an edit of LUAh_ViewpointSwitch.
|
// It's just an edit of LUAh_ViewpointSwitch.
|
||||||
boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, boolean autobalance, boolean scrambled)
|
boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, boolean tryingautobalance, boolean tryingscramble)
|
||||||
{
|
{
|
||||||
hook_p hookp;
|
hook_p hookp;
|
||||||
boolean canSwitchTeam = true;
|
boolean canSwitchTeam = true;
|
||||||
|
@ -1371,8 +1371,8 @@ boolean LUAh_TeamSwitch(player_t *player, int newteam, boolean fromspectators, b
|
||||||
LUA_PushUserdata(gL, player, META_PLAYER);
|
LUA_PushUserdata(gL, player, META_PLAYER);
|
||||||
lua_pushinteger(gL, newteam);
|
lua_pushinteger(gL, newteam);
|
||||||
lua_pushboolean(gL, fromspectators);
|
lua_pushboolean(gL, fromspectators);
|
||||||
lua_pushboolean(gL, autobalance);
|
lua_pushboolean(gL, tryingautobalance);
|
||||||
lua_pushboolean(gL, scrambled);
|
lua_pushboolean(gL, tryingscramble);
|
||||||
}
|
}
|
||||||
lua_pushfstring(gL, FMT_HOOKID, hookp->id);
|
lua_pushfstring(gL, FMT_HOOKID, hookp->id);
|
||||||
lua_gettable(gL, LUA_REGISTRYINDEX);
|
lua_gettable(gL, LUA_REGISTRYINDEX);
|
||||||
|
|
Loading…
Reference in New Issue