A bug?


(Jaquboss) #1

ing g_active.c in SpectatorClientEndFrame()
there is a thing i think that should go away

					ent->client->ps.stats[STAT_PLAYER_CLASS] = savedClass;			// NERVE - SMF - put player class back

this actualy keeps your STAT_PLAYER_CLASS when you follow somebody else in limbo
I see no point off this, all this does is bugging chargebar and adding medic revive icons for nonmedic classes…


(Chruker) #2

My brain needs sleep, but from quickly looking at the code, that single line looks like a bug fix that has been put in at a later time by somebody other than the original programmer.

all this does is bugging chargebar and adding medic revive icons for nonmedic classes

I haven’t noticed that. Do you mean when you are playing as medic, and specing another player while waiting to spawn, you still see the medic icon?


(Jaquboss) #3

yeah, also chargebar use STAT_PLAYER_CLASS for knowing player class