# HG changeset patch # User Adam Kaminski # Date 1632010441 14400 # Sat Sep 18 20:14:01 2021 -0400 # Node ID 80476b66a33d1b48769bf9c5de60cc41e4fcbc66 # Parent 6af80e672bc7484f45528262aedf4e0c3360a564 Make sure clients don't initialize the actor pointers for GAMEEVENT_ACTOR_DAMAGED event scripts. diff -r 6af80e672bc7 -r 80476b66a33d src/p_acs.cpp --- a/src/p_acs.cpp Sat Sep 18 16:21:08 2021 -0400 +++ b/src/p_acs.cpp Sat Sep 18 20:14:01 2021 -0400 @@ -11645,7 +11645,8 @@ // where we initialize the script's target, source, and inflictor pointers by using the // activator as the target, and the activator's own master and target, which are the // source and inflictor respectively. - if (( who != NULL ) && ( code->Type == SCRIPT_Event ) && ( args[0] == GAMEEVENT_ACTOR_DAMAGED )) + if (( NETWORK_InClientMode( ) == false ) && ( who != NULL ) && + ( code->Type == SCRIPT_Event ) && ( args[0] == GAMEEVENT_ACTOR_DAMAGED )) { pDamageTarget = who; pDamageSource = who->master;