Commit MetaInfo

Revision849d5e8e93f5f8d8bd5facf8fa57dc9857bf64b6 (tree)
Time2012-05-27 17:51:05
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

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)

Change Summary

Incremental Difference

diff -r 2a791df45c2c -r 849d5e8e93f5 docs/Skulltag Version History.txt
--- a/docs/Skulltag Version History.txt Sun May 27 10:41:49 2012 +0200
+++ b/docs/Skulltag Version History.txt Sun May 27 10:51:05 2012 +0200
@@ -230,6 +230,7 @@
230230 - - Fixed: Medals weren't announced on spied players. [Dusk]
231231 - - Fixed: Wound state changes weren't sent to clients. [Dusk, Torr Samaho]
232232 - - Fixed: The server always instructed clients to use the standard pain state of an actor, not any custom one. [Dusk, Torr Samaho]
233+- - Fixed: Newly connecting clients were not informed about non-standard death states of corpses already on the map. [Dusk, Torr Samaho]
233234 ! - Changed F12 to allow spectators full spying, with the exception of during LMS if it's disabled. [Eruanna]
234235 ! - Changed F12 to allow full demo spying. [Eruanna]
235236 ! - Players aren't forced to spectate after a "changemap" map change on a server with a join password anymore. [Torr Samaho]
diff -r 2a791df45c2c -r 849d5e8e93f5 src/sv_main.cpp
--- a/src/sv_main.cpp Sun May 27 10:41:49 2012 +0200
+++ b/src/sv_main.cpp Sun May 27 10:51:05 2012 +0200
@@ -2507,9 +2507,8 @@
25072507 {
25082508 SERVERCOMMANDS_ThingIsCorpse( pActor, ulClient, SVCF_ONLYTHISCLIENT );
25092509
2510- // [BB] If the corpse is gibbed, let the client know.
2511- FState* pXDeath = pActor->FindState(NAME_Death, NAME_Extreme);
2512- if ( pXDeath && pXDeath != pActor->FindState(NAME_Death) && pActor->InState ( pXDeath ) )
2510+ // [Dusk/BB] Actor is not normally dead, let clients know the proper frame.
2511+ if ( pActor->InState (pActor->FindState (NAME_Death)) == false )
25132512 SERVERCOMMANDS_SetThingFrame( pActor, pActor->state, ulClient, SVCF_ONLYTHISCLIENT, false );
25142513 }
25152514 }
Show on old repository browser