each SF_ flag can be set by their own parameters again, does not replace "flags" but is an alternative to it

e.g.: super = 1 for SF_SUPER, noskid = 1 for SF_NOSKID, machine = 1 for SF_MACHINE
This commit is contained in:
Monster Iestyn 2016-08-08 21:17:51 +01:00
parent 6a865abb93
commit f46ec64958

View file

@ -2666,6 +2666,27 @@ void R_AddSkins(UINT16 wadnum)
GETFLOAT(camerascale)
#undef GETFLOAT
#define GETFLAG(field, flag) else if (!stricmp(stoken, #field)) { \
if (atoi(value) == 1) \
skin->flags |= flag; \
else \
skin->flags &= ~flag; \
}
// parameters for individual character flags
GETFLAG(super, SF_SUPER)
GETFLAG(superanims, SF_SUPERANIMS)
GETFLAG(superspin, SF_SUPERSPIN)
GETFLAG(hires, SF_HIRES)
GETFLAG(noskid, SF_NOSKID)
GETFLAG(nospeedadjust, SF_NOSPEEDADJUST)
GETFLAG(runonwater, SF_RUNONWATER)
GETFLAG(nojumpspin, SF_NOJUMPSPIN)
GETFLAG(nojumpdamage, SF_NOJUMPDAMAGE)
GETFLAG(stompdamage, SF_STOMPDAMAGE)
GETFLAG(mariodamage, SF_MARIODAMAGE)
GETFLAG(machine, SF_MACHINE)
#undef GETFLAG
else // let's check if it's a sound, otherwise error out
{
boolean found = false;