mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 07:42:15 +00:00
crash bug fix for CTB & not selecting an item
This commit is contained in:
parent
38bb444bf0
commit
1f205765dc
1 changed files with 13 additions and 3 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.123 2002/07/11 04:27:29 niceass
|
||||
// crash bug fix for CTB & not selecting an item
|
||||
//
|
||||
// Revision 1.122 2002/07/07 18:36:13 jbravo
|
||||
// Added an AntiIdle system. Can play insane sounds for idle players, drop them
|
||||
// from teams or kick them. Upped version to Beta 2.1
|
||||
|
@ -1146,7 +1149,7 @@ void EquipPlayer(gentity_t * ent)
|
|||
ent->client->uniqueWeapons = 0;
|
||||
break;
|
||||
default:
|
||||
G_Printf("%s had an illegal teamplay weapon %i!\n", ent->client->pers.netname,
|
||||
G_Printf("%s had an illegal teamplay weapon [%i]!\n", ent->client->pers.netname,
|
||||
ent->client->teamplayWeapon);
|
||||
break;
|
||||
}
|
||||
|
@ -1167,8 +1170,15 @@ void EquipPlayer(gentity_t * ent)
|
|||
}
|
||||
ent->client->ps.weaponstate = WEAPON_RAISING;
|
||||
|
||||
|
||||
if (ent->client->teamplayItem) {
|
||||
ent->client->ps.stats[STAT_HOLDABLE_ITEM] = BG_FindItemForHoldable(ent->client->teamplayItem) - bg_itemlist;
|
||||
ent->client->uniqueItems = 1;
|
||||
}
|
||||
else {
|
||||
G_Printf("%s had an illegal teamplay item [%i]!\n", ent->client->pers.netname,
|
||||
ent->client->teamplayItem);
|
||||
}
|
||||
}
|
||||
|
||||
void UnstickPlayer(gentity_t * ent)
|
||||
|
|
Loading…
Reference in a new issue