Commit MetaInfo

Revisionfc8e0ebe9194184e15b7bdfdefc1a8ae8ace8afd (tree)
Time2020-07-21 05:31:14
AuthorTeemu Piippo <teemu@heck...>
CommiterTeemu Piippo

Log Message

fixed SetActorProperty not working online with APROP_ScaleX or APROP_ScaleY

Change Summary

Incremental Difference

diff -r 65d87770dedb -r fc8e0ebe9194 src/p_acs.cpp
--- a/src/p_acs.cpp Sun May 24 18:00:37 2020 +0200
+++ b/src/p_acs.cpp Mon Jul 20 23:31:14 2020 +0300
@@ -4492,10 +4492,18 @@
44924492
44934493 case APROP_ScaleX:
44944494 actor->scaleX = value;
4495+
4496+ // [TP] If we're the server, tell clients to update this actor property.
4497+ if ( NETWORK_GetState( ) == NETSTATE_SERVER )
4498+ SERVERCOMMANDS_SetThingScale( actor, ACTORSCALE_X );
44954499 break;
44964500
44974501 case APROP_ScaleY:
44984502 actor->scaleY = value;
4503+
4504+ // [TP] If we're the server, tell clients to update this actor property.
4505+ if ( NETWORK_GetState( ) == NETSTATE_SERVER )
4506+ SERVERCOMMANDS_SetThingScale( actor, ACTORSCALE_Y );
44994507 break;
45004508
45014509 case APROP_Mass:
@@ -11586,4 +11594,4 @@
1158611594 break;
1158711595 }
1158811596 return translationindex;
11589-}
\ No newline at end of file
11597+}
Show on old repository browser