- Fixed: After loading a savegame or unmorphing, a player's weapon slots
were empty. SVN r1477 (trunk)
This commit is contained in:
parent
69c2c4de64
commit
7dd75670f4
6 changed files with 38 additions and 8 deletions
|
|
@ -1412,7 +1412,7 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
|
|||
|
||||
// Hub transitions must keep the current total time
|
||||
if (!hubLoad)
|
||||
level.totaltime=i;
|
||||
level.totaltime = i;
|
||||
|
||||
if (arc.IsStoring ())
|
||||
{
|
||||
|
|
@ -1501,9 +1501,19 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
|
|||
|
||||
P_SerializePlayers (arc, hubLoad);
|
||||
P_SerializeSounds (arc);
|
||||
if (arc.IsLoading()) for(i=0;i<numsectors;i++)
|
||||
if (arc.IsLoading())
|
||||
{
|
||||
P_Recalculate3DFloors(§ors[i]);
|
||||
for (i = 0; i < numsectors; i++)
|
||||
{
|
||||
P_Recalculate3DFloors(§ors[i]);
|
||||
}
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (playeringame[i] && players[i].mo != NULL)
|
||||
{
|
||||
players[i].mo->SetupWeaponSlots();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue