mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Der gleiche cl_gun == 2 und fov > 91 Fix wie im Hauptspiel für CTF und
beide Addons.
This commit is contained in:
parent
bcdd802eca
commit
0c127815f2
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue