mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- Moved thingdef_codeptr.cpp into thingdef/ with the other thingdef files.
- Fixed: After loading a savegame, G_UnSnapshotLevel() destroyed the unmorphed versions of players because it thought they were extras. SVN r694 (trunk)
This commit is contained in:
parent
0b7357b2fc
commit
ce388163e1
5 changed files with 20 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
January 11, 2008
|
||||
- Moved thingdef_codeptr.cpp into thingdef/ with the other thingdef files.
|
||||
|
||||
January 11, 2008 (Changes by Graf Zahl)
|
||||
- Added Skulltag's pickup sprite and related information to the pistol. This
|
||||
will also double as the pistol's icon in the AltHUD.
|
||||
|
@ -6,6 +9,8 @@ January 11, 2008 (Changes by Graf Zahl)
|
|||
- Added GZDoom's alt HUD.
|
||||
|
||||
January 10, 2008
|
||||
- Fixed: After loading a savegame, G_UnSnapshotLevel() destroyed the
|
||||
unmorphed versions of players because it thought they were extras.
|
||||
- Fixed: Weapon positions were only adjusted in 1280x1024 if the status
|
||||
bar was hidden.
|
||||
- Fixed: If you died in co-op and somebody else ended the map before you
|
||||
|
|
|
@ -2812,11 +2812,24 @@ void G_UnSnapshotLevel (bool hubLoad)
|
|||
{
|
||||
next = it.Next();
|
||||
if (pawn->player == NULL || pawn->player->mo == NULL || !playeringame[pawn->player - players])
|
||||
{
|
||||
int i;
|
||||
|
||||
// If this isn't the unmorphed original copy of a player, destroy it, because it's extra.
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (playeringame[i] && players[i].morphTics && players[i].mo->tracer == pawn)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == MAXPLAYERS)
|
||||
{
|
||||
pawn->Destroy ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// No reason to keep the snapshot around once the level's been entered.
|
||||
delete level.info->snapshot;
|
||||
level.info->snapshot = NULL;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "m_random.h"
|
||||
#include "a_sharedglobal.h"
|
||||
|
||||
#define MORPHTICS (4*TICRATE)
|
||||
#define MORPHTICS (40*TICRATE)
|
||||
|
||||
static FRandom pr_morphmonst ("MorphMonster");
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 408 B |
Loading…
Reference in a new issue