diff --git a/src/d_net.cpp b/src/d_net.cpp index 2e8e9aca2..85a093cb8 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -2364,16 +2364,17 @@ void Net_DoCommand (int type, uint8_t **stream, int player) spawned->flags &= ~MF_FRIENDLY; spawned->health = spawned->SpawnHealth(); } - } - if (type >= DEM_SUMMON2 && type <= DEM_SUMMONFOE2) - { - spawned->Angles.Yaw = source->Angles.Yaw - angle; - spawned->tid = tid; - spawned->special = special; - for(i = 0; i < 5; i++) { - spawned->args[i] = args[i]; + + if (type >= DEM_SUMMON2 && type <= DEM_SUMMONFOE2) + { + spawned->Angles.Yaw = source->Angles.Yaw - angle; + spawned->tid = tid; + spawned->special = special; + for(i = 0; i < 5; i++) { + spawned->args[i] = args[i]; + } + if(tid) spawned->AddToHash(); } - if(tid) spawned->AddToHash(); } } }