diff --git a/src/g_level.h b/src/g_level.h index 10dc15eb8c..74df29ea37 100644 --- a/src/g_level.h +++ b/src/g_level.h @@ -401,7 +401,7 @@ struct FLevelLocals int musicorder; int cdtrack; unsigned int cdid; - int nextmusic; // For MUSINFO purposes + int nextmusic; // For MUSINFO purposes char skypic1[9]; char skypic2[9]; diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 955f1eec3d..5385813271 100644 --- a/src/p_interaction.cpp +++ b/src/p_interaction.cpp @@ -1311,7 +1311,7 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage if (!(target->flags5 & MF5_NOPAIN) && (inflictor == NULL || !(inflictor->flags5 & MF5_PAINLESS)) && - !G_SkillProperty(SKILLP_NoPain) && !(target->flags & MF_SKULLFLY)) + (target->player != NULL || !G_SkillProperty(SKILLP_NoPain)) && !(target->flags & MF_SKULLFLY)) { pc = target->GetClass()->ActorInfo->PainChances; painchance = target->PainChance;