Fixed weaponalpha from changing weapon's rendermode before spawn which caused display problems.

This commit is contained in:
Greyscale
2009-05-18 23:14:18 -07:00
parent 0b3524e8df
commit d466ab8b24
4 changed files with 71 additions and 6 deletions

View File

@ -374,12 +374,6 @@ WpnRestrictQuery:RestrictUnrestrict(const String:weapon[], String:display[] = ""
// Check if weapon is a custom group name.
if (RestrictIsWeaponGroup(weapon))
{
// Return restrict failed if group isn't restricted.
if (RestrictIsGroupUnrestricted(weapon))
{
return Failed_Group;
}
// Jump to weapon group key.
KvRewind(kvWeaponGroups);
KvJumpToKey(kvWeaponGroups, weapon);
@ -387,6 +381,12 @@ WpnRestrictQuery:RestrictUnrestrict(const String:weapon[], String:display[] = ""
// Get display name of the weapon group.
KvGetSectionName(kvWeaponGroups, display, WEAPONS_MAX_LENGTH);
// Return restrict failed if group isn't restricted.
if (RestrictIsGroupUnrestricted(weapon))
{
return Failed_Group;
}
// Traverse into the group's weapons.
if (KvGotoFirstSubKey(kvWeaponGroups))
{