More union types for the union type god
This commit is contained in:
parent
520e3c5dc3
commit
9c86cd0bc2
|
@ -81,7 +81,8 @@ struct hook_s
|
||||||
UINT16 id;
|
UINT16 id;
|
||||||
union {
|
union {
|
||||||
mobjtype_t mt;
|
mobjtype_t mt;
|
||||||
char *skinname; // also used as musname for ShouldJingleContinue... I'm lazy
|
char *skinname;
|
||||||
|
char *musname;
|
||||||
char *funcname;
|
char *funcname;
|
||||||
} s;
|
} s;
|
||||||
boolean error;
|
boolean error;
|
||||||
|
@ -1647,7 +1648,7 @@ boolean LUAh_ShouldJingleContinue(player_t *player, const char *musname)
|
||||||
for (hookp = roothook; hookp; hookp = hookp->next)
|
for (hookp = roothook; hookp; hookp = hookp->next)
|
||||||
{
|
{
|
||||||
if (hookp->type != hook_ShouldJingleContinue
|
if (hookp->type != hook_ShouldJingleContinue
|
||||||
|| (hookp->s.skinname && strcmp(hookp->s.skinname, musname)))
|
|| (hookp->s.musname && strcmp(hookp->s.musname, musname)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (lua_gettop(gL) == 0)
|
if (lua_gettop(gL) == 0)
|
||||||
|
|
Loading…
Reference in a new issue