Der gleiche cl_gun == 2 und fov > 91 Fix wie im Hauptspiel für CTF und

beide Addons.
This commit is contained in:
Yamagi Burmeister 2010-01-28 20:59:40 +00:00
parent bcdd802eca
commit 0c127815f2

View file

@ -535,7 +535,15 @@ void G_SetStats (edict_t *ent)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex ("i_help");
else if ( (ent->client->pers.hand == CENTER_HANDED || ent->client->ps.fov > 91)
&& ent->client->pers.weapon)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex (ent->client->pers.weapon->icon);
{
cvar_t *gun;
gun = gi.cvar("cl_gun", "2", 0);
if(gun->value != 2)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex (ent->client->pers.weapon->icon);
else
ent->client->ps.stats[STAT_HELPICON] = 0;
}
else
ent->client->ps.stats[STAT_HELPICON] = 0;