mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 01:43:50 +00:00
More union types for the union type god
This commit is contained in:
parent
520e3c5dc3
commit
9c86cd0bc2
1 changed files with 3 additions and 2 deletions
|
@ -81,7 +81,8 @@ struct hook_s
|
|||
UINT16 id;
|
||||
union {
|
||||
mobjtype_t mt;
|
||||
char *skinname; // also used as musname for ShouldJingleContinue... I'm lazy
|
||||
char *skinname;
|
||||
char *musname;
|
||||
char *funcname;
|
||||
} s;
|
||||
boolean error;
|
||||
|
@ -1647,7 +1648,7 @@ boolean LUAh_ShouldJingleContinue(player_t *player, const char *musname)
|
|||
for (hookp = roothook; hookp; hookp = hookp->next)
|
||||
{
|
||||
if (hookp->type != hook_ShouldJingleContinue
|
||||
|| (hookp->s.skinname && strcmp(hookp->s.skinname, musname)))
|
||||
|| (hookp->s.musname && strcmp(hookp->s.musname, musname)))
|
||||
continue;
|
||||
|
||||
if (lua_gettop(gL) == 0)
|
||||
|
|
Loading…
Reference in a new issue