disable missed MBF codepointers (#144)

This commit is contained in:
Roman Fomin 2021-03-13 15:40:27 +07:00 committed by GitHub
parent f66d448eb6
commit 0a5d0f8b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1899,6 +1899,10 @@ void A_SkullAttack(mobj_t *actor)
void A_BetaSkullAttack(mobj_t *actor)
{
int damage;
if (demo_version < 203)
return;
if (!actor->target || actor->target->type == MT_SKULL)
return;
// [FG] fix crash when attack sound is missing
@ -1913,6 +1917,8 @@ void A_BetaSkullAttack(mobj_t *actor)
void A_Stop(mobj_t *actor)
{
if (demo_version < 203)
return;
actor->momx = actor->momy = actor->momz = 0;
}