- Fixed: BobStyle was assigned as if they were flags.

SVN r4027 (trunk)
This commit is contained in:
Braden Obrzut 2013-01-17 19:25:22 +00:00
parent c7a008f99d
commit de65ae809f

View file

@ -1772,7 +1772,7 @@ DEFINE_CLASS_PROPERTY(yadjust, F, Weapon)
DEFINE_CLASS_PROPERTY(bobstyle, S, Weapon) DEFINE_CLASS_PROPERTY(bobstyle, S, Weapon)
{ {
static const char *names[] = { "Normal", "Inverse", "Alpha", "InverseAlpha", "Smooth", "InverseSmooth", NULL }; static const char *names[] = { "Normal", "Inverse", "Alpha", "InverseAlpha", "Smooth", "InverseSmooth", NULL };
static const int flags[] = { AWeapon::BobNormal, static const int styles[] = { AWeapon::BobNormal,
AWeapon::BobInverse, AWeapon::BobAlpha, AWeapon::BobInverseAlpha, AWeapon::BobInverse, AWeapon::BobAlpha, AWeapon::BobInverseAlpha,
AWeapon::BobSmooth, AWeapon::BobInverseSmooth, }; AWeapon::BobSmooth, AWeapon::BobInverseSmooth, };
PROP_STRING_PARM(id, 0); PROP_STRING_PARM(id, 0);
@ -1782,7 +1782,7 @@ DEFINE_CLASS_PROPERTY(bobstyle, S, Weapon)
I_Error("Unknown bobstyle %s", id); I_Error("Unknown bobstyle %s", id);
match = 0; match = 0;
} }
defaults->BobStyle |= flags[match]; defaults->BobStyle = styles[match];
} }
//========================================================================== //==========================================================================