Skip to content

Commit

Permalink
Fixed Doom/Heretic: Attempts to load vanilla saved games would
Browse files Browse the repository at this point in the history
result in SIGSEGV. They aren't working yet, however. Larger
changes are necessary to fix the myriad problems with this.
  • Loading branch information
danij-deng committed May 21, 2011
1 parent 58d09a7 commit edee526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions doomsday/plugins/jdoom/src/p_oldsvg.c
Expand Up @@ -326,6 +326,7 @@ static void SV_ReadMobj(void)
// Thing being chased/attacked for tracers.
SV_ReadLong();

mo->info = info;
SV_UpdateReadMobjFlags(mo, 0);

mo->state = &STATES[(int) mo->state];
Expand All @@ -341,11 +342,8 @@ static void SV_ReadMobj(void)
mo->dPlayer->lookDir = 0; /* $unifiedangles */
}
P_MobjSetPosition(mo);
mo->info = info;
mo->floorZ =
P_GetFloatp(mo->subsector, DMU_FLOOR_HEIGHT);
mo->ceilingZ =
P_GetFloatp(mo->subsector, DMU_CEILING_HEIGHT);
mo->floorZ = P_GetFloatp(mo->subsector, DMU_FLOOR_HEIGHT);
mo->ceilingZ = P_GetFloatp(mo->subsector, DMU_CEILING_HEIGHT);
}

void P_v19_UnArchivePlayers(void)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/jheretic/src/p_oldsvg.c
Expand Up @@ -346,6 +346,7 @@ static void SV_v13_ReadMobj(void)
mo->spawnSpot.flags = spawnFlags;
}

mo->info = info;
SV_UpdateReadMobjFlags(mo, 0);

mo->state = &STATES[(int) mo->state];
Expand All @@ -357,7 +358,6 @@ static void SV_v13_ReadMobj(void)
mo->player->plr->mo->dPlayer = mo->player->plr;
}
P_MobjSetPosition(mo);
mo->info = info;
mo->floorZ = P_GetFloatp(mo->subsector, DMU_FLOOR_HEIGHT);
mo->ceilingZ = P_GetFloatp(mo->subsector, DMU_CEILING_HEIGHT);
}
Expand Down

0 comments on commit edee526

Please sign in to comment.