Commits

Torr_Samaho committed 6cbee6f

Fixed: If a player respawned with a console or lag icon above his head, the icon vanished.

Comments (0)

Files changed (2)

docs/zandronum-history.txt

 -	- Fixed: Lagging clients were not affected by things like sector damage. [Torr Samaho]
 -	- Fixed: Using reconnect while playing a demo caused the game to crash. [Torr Samaho]
 -	- Fixed: The lag icon was missing from zandronum.pk3. [Torr Samaho]
+-	- Fixed: If a player respawned with a console or lag icon above his head, the icon vanished. [Torr Samaho]
 !	- sv_coop_damagefactor is not archived in the config file anymore, but reset to its default value when the game starts. [Torr Samaho]
 
 
 	chasecam = p->cheats & CF_CHASECAM;
 
 	bOnTeam = p->bOnTeam;
+	const bool bInConsole = p->bInConsole;
 	bSpectating = p->bSpectating;
 	bDeadSpectator = p->bDeadSpectator;
 	ulLivesLeft = p->ulLivesLeft;
 	ulTime = p->ulTime;
 	lCheats = p->cheats;
 	StartingWeaponName = p->StartingWeaponName;
+	const bool bLagging = p->bLagging;
 
 	// Reset player structure to its defaults
 	p->~player_t();
 	p->original_oldbuttons = ~0;
 
 	p->bOnTeam = bOnTeam;
+	p->bInConsole = bInConsole;
 	p->bSpectating = bSpectating;
 	p->bDeadSpectator = bDeadSpectator;
 	p->ulLivesLeft = ulLivesLeft;
 	if ( lCheats & CF_TIMEFREEZE )
 		p->cheats |= CF_TIMEFREEZE;
 	p->StartingWeaponName = StartingWeaponName;
+	p->bLagging = bLagging;
 	p->bIsBot = p->pSkullBot ? true : false;
 
 	p->playerstate = PST_LIVE;