- 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:
Randy Heit 2008-01-12 01:17:37 +00:00
parent 0b7357b2fc
commit ce388163e1
5 changed files with 20 additions and 2 deletions

View file

@ -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

View file

@ -2813,7 +2813,20 @@ void G_UnSnapshotLevel (bool hubLoad)
next = it.Next();
if (pawn->player == NULL || pawn->player->mo == NULL || !playeringame[pawn->player - players])
{
pawn->Destroy ();
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 ();
}
}
}
}

View file

@ -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