Commit MetaInfo

Revision76c37d688da558bbf4f9bbe625c41b15f4942f8c (tree)
Time2012-05-27 16:45:59
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

reduced net traffic needed if SERVERCOMMANDS_SetThingFrame is used to set the pain state

Change Summary

Incremental Difference

diff -r a6135a2f1c8e -r 76c37d688da5 src/sv_commands.cpp
--- a/src/sv_commands.cpp Sun May 27 09:38:26 2012 +0200
+++ b/src/sv_commands.cpp Sun May 27 09:45:59 2012 +0200
@@ -2629,6 +2629,11 @@
26292629 SERVERCOMMANDS_SetThingState( pActor, STATE_WOUND );
26302630 return;
26312631 }
2632+ else if ( pState == pActor->FindState( NAME_Pain ))
2633+ {
2634+ SERVERCOMMANDS_SetThingState( pActor, STATE_PAIN );
2635+ return;
2636+ }
26322637 }
26332638
26342639 // [BB] Try to find the state label and the correspoding offset belonging to the target state.
Show on old repository browser