base_player: MakeTempSectator() will now make sure modelindex of the target

is set to 0.
This commit is contained in:
Marco Cawthorne 2022-04-08 12:58:23 -07:00
parent 4e62e833a3
commit 2c79071514
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,11 @@ CSEv_PlayerSwitchWeapon_i(int w)
{
player pl = (player)self;
#ifdef WASTES
if (pl.gflags & GF_IS_HEALING)
return;
#endif
if (pl.activeweapon != w) {
pl.activeweapon = w;
Weapons_Draw(pl);

View File

@ -503,6 +503,7 @@ base_player::MakeTempSpectator(void)
{
classname = "player";
flags = FL_CLIENT;
modelindex = 0;
max_health = health = 0;
armor = 0;
g_items = 0;