Commits

Torr_Samaho  committed 849d5e8

Fixed: Newly connecting clients were not informed about non-standard death states of corpses already on the map. (part of Dusk's wound state / custom damagetype fix patch, but modified so that SERVERCOMMANDS_ThingIsCorpse is called on all corpses)

  • Participants
  • Parent commits 2a791df

Comments (0)

Files changed (2)

File docs/Skulltag Version History.txt

 -	- Fixed: Medals weren't announced on spied players. [Dusk]
 -	- Fixed: Wound state changes weren't sent to clients. [Dusk, Torr Samaho]
 -	- Fixed: The server always instructed clients to use the standard pain state of an actor, not any custom one. [Dusk, Torr Samaho]
+-	- Fixed: Newly connecting clients were not informed about non-standard death states of corpses already on the map. [Dusk, Torr Samaho]
 !	- Changed F12 to allow spectators full spying, with the exception of during LMS if it's disabled. [Eruanna]
 !	- Changed F12 to allow full demo spying. [Eruanna]
 !	- Players aren't forced to spectate after a "changemap" map change on a server with a join password anymore. [Torr Samaho]

File src/sv_main.cpp

 		{
 			SERVERCOMMANDS_ThingIsCorpse( pActor, ulClient, SVCF_ONLYTHISCLIENT );
 
-			// [BB] If the corpse is gibbed, let the client know.
-			FState* pXDeath = pActor->FindState(NAME_Death, NAME_Extreme);
-			if ( pXDeath && pXDeath != pActor->FindState(NAME_Death) && pActor->InState ( pXDeath ) )
+			// [Dusk/BB] Actor is not normally dead, let clients know the proper frame.
+			if ( pActor->InState (pActor->FindState (NAME_Death)) == false )
 				SERVERCOMMANDS_SetThingFrame( pActor, pActor->state, ulClient, SVCF_ONLYTHISCLIENT, false );
 		}
 	}