mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- Fixed: GetLumpOffset must call SetLumpAddress when being called for uncompressed
Zip entries. - Fixed: Some of Doom's weapon obituaries didn't have the $-prefix that indicates a reference to the string table. - Fixed: The check for a valid weapon's spawn state for weapon dropping was incorrect. SVN r523 (trunk)
This commit is contained in:
parent
e08da03a3d
commit
6fad457592
5 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
April 30, 2007 (Changes by Graf Zahl)
|
||||||
|
- Fixed: GetLumpOffset must call SetLumpAddress when being called for uncompressed
|
||||||
|
Zip entries.
|
||||||
|
- Fixed: Some of Doom's weapon obituaries didn't have the $-prefix that indicates a
|
||||||
|
reference to the string table.
|
||||||
|
- Fixed: The check for a valid weapon's spawn state for weapon dropping was incorrect.
|
||||||
|
|
||||||
April 29, 2007 (Changes by Graf Zahl)
|
April 29, 2007 (Changes by Graf Zahl)
|
||||||
- Increased precision of texture scaling factors to full fixed point. In the process
|
- Increased precision of texture scaling factors to full fixed point. In the process
|
||||||
I got rid of the old tx and ty CVARs because they made the texture scaling
|
I got rid of the old tx and ty CVARs because they made the texture scaling
|
||||||
|
|
|
@ -1050,6 +1050,7 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor)
|
||||||
AInventory *item;
|
AInventory *item;
|
||||||
|
|
||||||
if (weap->SpawnState != NULL &&
|
if (weap->SpawnState != NULL &&
|
||||||
|
weap->SpawnState != &AActor::States[0] &&
|
||||||
weap->SpawnState != &AActor::States[AActor::S_NULL])
|
weap->SpawnState != &AActor::States[AActor::S_NULL])
|
||||||
{
|
{
|
||||||
item = P_DropItem (this, weap->GetClass(), -1, 256);
|
item = P_DropItem (this, weap->GetClass(), -1, 256);
|
||||||
|
|
|
@ -990,13 +990,18 @@ int FWadCollection::LumpLength (int lump) const
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
int FWadCollection::GetLumpOffset (int lump) const
|
int FWadCollection::GetLumpOffset (int lump)
|
||||||
{
|
{
|
||||||
if ((size_t)lump >= NumLumps)
|
if ((size_t)lump >= NumLumps)
|
||||||
{
|
{
|
||||||
I_Error ("GetLumpOffset: %i >= NumLumps",lump);
|
I_Error ("GetLumpOffset: %i >= NumLumps",lump);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (LumpInfo[lump].flags & LUMPF_NEEDFILESTART)
|
||||||
|
{
|
||||||
|
SetLumpAddress(&LumpInfo[lump]);
|
||||||
|
}
|
||||||
|
|
||||||
return LumpInfo[lump].position;
|
return LumpInfo[lump].position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ public:
|
||||||
static DWORD LumpNameHash (const char *name); // [RH] Create hash key from an 8-char name
|
static DWORD LumpNameHash (const char *name); // [RH] Create hash key from an 8-char name
|
||||||
|
|
||||||
int LumpLength (int lump) const;
|
int LumpLength (int lump) const;
|
||||||
int GetLumpOffset (int lump) const; // [RH] Returns offset of lump in the wadfile
|
int GetLumpOffset (int lump); // [RH] Returns offset of lump in the wadfile
|
||||||
void GetLumpName (char *to, int lump) const; // [RH] Copies the lump name to to using uppercopy
|
void GetLumpName (char *to, int lump) const; // [RH] Copies the lump name to to using uppercopy
|
||||||
const char *GetLumpFullName (int lump) const; // [RH] Returns the lump's full name
|
const char *GetLumpFullName (int lump) const; // [RH] Returns the lump's full name
|
||||||
int GetLumpFile (int lump) const; // [RH] Returns wadnum for a specified lump
|
int GetLumpFile (int lump) const; // [RH] Returns wadnum for a specified lump
|
||||||
|
|
|
@ -142,7 +142,7 @@ ACTOR Shotgun : DoomWeapon 2001
|
||||||
Weapon.AmmoGive 8
|
Weapon.AmmoGive 8
|
||||||
Weapon.AmmoType "Shell"
|
Weapon.AmmoType "Shell"
|
||||||
Inventory.PickupMessage "$GOTSHOTGUN"
|
Inventory.PickupMessage "$GOTSHOTGUN"
|
||||||
Obituary "OB_MPSHOTGUN"
|
Obituary "$OB_MPSHOTGUN"
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Ready:
|
Ready:
|
||||||
|
@ -188,7 +188,7 @@ ACTOR SuperShotgun : DoomWeapon 82
|
||||||
Weapon.AmmoGive 8
|
Weapon.AmmoGive 8
|
||||||
Weapon.AmmoType "Shell"
|
Weapon.AmmoType "Shell"
|
||||||
Inventory.PickupMessage "$GOTSHOTGUN2"
|
Inventory.PickupMessage "$GOTSHOTGUN2"
|
||||||
Obituary "OB_MPSSHOTGUN"
|
Obituary "$OB_MPSSHOTGUN"
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Ready:
|
Ready:
|
||||||
|
@ -241,7 +241,7 @@ ACTOR Chaingun : DoomWeapon 2002
|
||||||
Weapon.AmmoGive 20
|
Weapon.AmmoGive 20
|
||||||
Weapon.AmmoType "Clip"
|
Weapon.AmmoType "Clip"
|
||||||
Inventory.PickupMessage "$GOTCHAINGUN"
|
Inventory.PickupMessage "$GOTCHAINGUN"
|
||||||
Obituary "OB_MPCHAINGUN"
|
Obituary "$OB_MPCHAINGUN"
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Ready:
|
Ready:
|
||||||
|
|
Loading…
Reference in a new issue