Skip to content

Commit

Permalink
Fix changing music to last music changer thing when loading save
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 7, 2023
1 parent e20b357 commit fec8d8c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/p_saveg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,13 +1360,7 @@ void P_UnarchiveThinkers(void)
mobj->info = &mobjinfo[mobj->type];
P_SetThingPosition(mobj);

if (mobj->type == MT_MUSICSOURCE)
{
musinfo.mapthing = mobj;
mobj->thinker.function = &MusInfoThinker;
}
else
mobj->thinker.function = &P_MobjThinker;
mobj->thinker.function = (mobj->type == MT_MUSICSOURCE ? &MusInfoThinker : &P_MobjThinker);

P_AddThinker(&mobj->thinker);
mobj->colfunc = mobj->info->colfunc;
Expand Down

0 comments on commit fec8d8c

Please sign in to comment.