mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- Changed first name from 'none' to ''. The internal constant is still NAME_None,
though. - Fixed: Picking up a backpack incorrectly set the maximum amount for any ammo type that didn't have a BackpackMaxAmount to 0. SVN r569 (trunk)
This commit is contained in:
parent
ba61c60d52
commit
e1abe4b380
5 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
November 19, 2007 (Changes by Graf Zahl)
|
||||
- Changed first name from 'none' to ''. The internal constant is still NAME_None,
|
||||
though.
|
||||
- Fixed: Picking up a backpack incorrectly set the maximum amount for any ammo
|
||||
type that didn't have a BackpackMaxAmount to 0.
|
||||
|
||||
November 18, 2007 (Changes by Graf Zahl)
|
||||
- Fixed TableShit0 definition.
|
||||
|
||||
|
|
|
@ -1511,7 +1511,7 @@ AInventory *ABackpackItem::CreateCopy (AActor *other)
|
|||
{ // The player did not have the ammo. Add it.
|
||||
ammo = static_cast<AAmmo *>(Spawn (type, 0, 0, 0, NO_REPLACE));
|
||||
ammo->Amount = bDepleted ? 0 : amount;
|
||||
ammo->MaxAmount = ammo->BackpackMaxAmount;
|
||||
if (ammo->BackpackMaxAmount > ammo->MaxAmount) ammo->MaxAmount = ammo->BackpackMaxAmount;
|
||||
ammo->AttachToOwner (other);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -71,8 +71,10 @@ FName::NameManager FName::NameData;
|
|||
static const char *PredefinedNames[] =
|
||||
{
|
||||
#define xx(n) #n,
|
||||
#define yy(n,s) s,
|
||||
#include "namedef.h"
|
||||
#undef xx
|
||||
#undef yy
|
||||
};
|
||||
|
||||
// CODE --------------------------------------------------------------------
|
||||
|
|
|
@ -37,8 +37,10 @@
|
|||
enum ENamedName
|
||||
{
|
||||
#define xx(n) NAME_##n,
|
||||
#define yy(n,s) NAME_##n,
|
||||
#include "namedef.h"
|
||||
#undef xx
|
||||
#undef yy
|
||||
};
|
||||
|
||||
class FString;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// 'None' must always be the first name.
|
||||
xx(None)
|
||||
yy(None, "")
|
||||
|
||||
xx(Super)
|
||||
xx(Object)
|
||||
|
|
Loading…
Reference in a new issue