- Fixed: P_UndoPlayerMorph didn't properly transfer the inventory. It just

copied the pointer instead of using ObtainInventory.


SVN r230 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-27 23:49:45 +00:00
parent 3b39092412
commit 7ff576adf4
7 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
June 27, 2006 (Changes by Graf Zahl)
- Fixed: P_UndoPlayerMorph didn't properly transfer the inventory. It just
copied the pointer instead of using ObtainInventory.
June 24, 2006 June 24, 2006
- Moved the version resource into the "compile-time directives" section of - Moved the version resource into the "compile-time directives" section of
the resource script so that Developer Studio won't replace the version macros the resource script so that Developer Studio won't replace the version macros
@ -8,6 +12,8 @@ June 24, 2006 (Changes by Graf Zahl)
- Fixed: PIT_CheckThing checked AActor::tid instead of TidToHate to determine - Fixed: PIT_CheckThing checked AActor::tid instead of TidToHate to determine
whether a monster of the same species can be hurt. whether a monster of the same species can be hurt.
- Added new ice chunk sprites submitted by Enjay. - Added new ice chunk sprites submitted by Enjay.
- Replaced all occurences of 'ZDoom' in i_crash.cpp with a define from version.h
so that this file doesn't need to be changed for altering the texts.
- Deleted the programmer death script from strifehelp.acs because it is no - Deleted the programmer death script from strifehelp.acs because it is no
longer used. longer used.
- Fixed: strfhelp.acs and the PUMPUPS cheat need to give 10 UpgradeStaminas - Fixed: strfhelp.acs and the PUMPUPS cheat need to give 10 UpgradeStaminas

View file

@ -128,6 +128,7 @@ bool P_UndoPlayerMorph (player_t *player, bool force)
} }
pmo->player = NULL; pmo->player = NULL;
mo->ObtainInventory (pmo);
DObject::PointerSubstitution (pmo, mo); DObject::PointerSubstitution (pmo, mo);
mo->angle = pmo->angle; mo->angle = pmo->angle;
mo->player = player; mo->player = player;
@ -161,8 +162,6 @@ bool P_UndoPlayerMorph (player_t *player, bool force)
angle = mo->angle >> ANGLETOFINESHIFT; angle = mo->angle >> ANGLETOFINESHIFT;
Spawn<ATeleportFog> (pmo->x + 20*finecosine[angle], Spawn<ATeleportFog> (pmo->x + 20*finecosine[angle],
pmo->y + 20*finesine[angle], pmo->z + TELEFOGHEIGHT); pmo->y + 20*finesine[angle], pmo->z + TELEFOGHEIGHT);
mo->Inventory = pmo->Inventory;
pmo->Inventory = NULL;
beastweap = player->ReadyWeapon; beastweap = player->ReadyWeapon;
if (player->PremorphWeapon != NULL) if (player->PremorphWeapon != NULL)
{ {

View file

@ -1200,7 +1200,7 @@ static HANDLE MakeZip ()
central.LocalHeaderOffset = LittleLong(TarFiles[i].ZipOffset); central.LocalHeaderOffset = LittleLong(TarFiles[i].ZipOffset);
WriteFile (file, &central, sizeof(central), &len, NULL); WriteFile (file, &central, sizeof(central), &len, NULL);
WriteFile (file, TarFiles[i].Filename, (DWORD)namelen, &len, NULL); WriteFile (file, TarFiles[i].Filename, (DWORD)namelen, &len, NULL);
dirsize += sizeof(central) + namelen; dirsize += DWORD(sizeof(central) + namelen);
} }
// Write the directory terminator // Write the directory terminator

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 125 B