- 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:
Christoph Oelckers 2007-11-19 20:32:39 +00:00
parent ba61c60d52
commit e1abe4b380
5 changed files with 12 additions and 2 deletions

View file

@ -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) November 18, 2007 (Changes by Graf Zahl)
- Fixed TableShit0 definition. - Fixed TableShit0 definition.

View file

@ -1511,7 +1511,7 @@ AInventory *ABackpackItem::CreateCopy (AActor *other)
{ // The player did not have the ammo. Add it. { // The player did not have the ammo. Add it.
ammo = static_cast<AAmmo *>(Spawn (type, 0, 0, 0, NO_REPLACE)); ammo = static_cast<AAmmo *>(Spawn (type, 0, 0, 0, NO_REPLACE));
ammo->Amount = bDepleted ? 0 : amount; ammo->Amount = bDepleted ? 0 : amount;
ammo->MaxAmount = ammo->BackpackMaxAmount; if (ammo->BackpackMaxAmount > ammo->MaxAmount) ammo->MaxAmount = ammo->BackpackMaxAmount;
ammo->AttachToOwner (other); ammo->AttachToOwner (other);
} }
else else

View file

@ -71,8 +71,10 @@ FName::NameManager FName::NameData;
static const char *PredefinedNames[] = static const char *PredefinedNames[] =
{ {
#define xx(n) #n, #define xx(n) #n,
#define yy(n,s) s,
#include "namedef.h" #include "namedef.h"
#undef xx #undef xx
#undef yy
}; };
// CODE -------------------------------------------------------------------- // CODE --------------------------------------------------------------------

View file

@ -37,8 +37,10 @@
enum ENamedName enum ENamedName
{ {
#define xx(n) NAME_##n, #define xx(n) NAME_##n,
#define yy(n,s) NAME_##n,
#include "namedef.h" #include "namedef.h"
#undef xx #undef xx
#undef yy
}; };
class FString; class FString;

View file

@ -1,5 +1,5 @@
// 'None' must always be the first name. // 'None' must always be the first name.
xx(None) yy(None, "")
xx(Super) xx(Super)
xx(Object) xx(Object)