mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
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:
parent
6a865abb93
commit
f46ec64958
1 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue