- Fixed: Conversion of c_bind.cpp to FString was incomplete.
- Fixed some functions that were declared as taking size_t's but defined as taking unsigned ints. - Added a dummy object to delete sound environments on exit. - Fixed: FWarpTexture did not delete its Spans when destroyed. - Changed wadclusterinfos and wadlevelinfos arrays into TArrays. - Added the TypeInfo::AutoTypeInfoPtr for TypeInfo::m_RuntimeActors so they can be automatically deleted. - Changed TypeInfo::m_Types into a TArray so it will be automatically deleted on exit. - Fixed: TArray::Resize() did not deconstruct entries when shrinking the array. - Changed TArray::Push() so that it calls Grow() instead of duplicating the growth calculations itself. - Calling TArray::Grow() for a small amount when the array is short should grow it a bit more than it was doing. SVN r76 (trunk)
This commit is contained in:
parent
c8cdb52863
commit
fe84b6077e
22 changed files with 155 additions and 139 deletions
|
|
@ -518,7 +518,7 @@ void cht_Give (player_t *player, char *name, int amount)
|
|||
{
|
||||
// Find every unique type of ammo. Give it to the player if
|
||||
// he doesn't have it already, and set each to its maximum.
|
||||
for (int i = 0; i < TypeInfo::m_NumTypes; ++i)
|
||||
for (unsigned int i = 0; i < TypeInfo::m_Types.Size(); ++i)
|
||||
{
|
||||
const TypeInfo *type = TypeInfo::m_Types[i];
|
||||
|
||||
|
|
@ -574,7 +574,7 @@ void cht_Give (player_t *player, char *name, int amount)
|
|||
|
||||
if (giveall || stricmp (name, "keys") == 0)
|
||||
{
|
||||
for (i = 0; i < TypeInfo::m_NumTypes; ++i)
|
||||
for (unsigned int i = 0; i < TypeInfo::m_Types.Size(); ++i)
|
||||
{
|
||||
if (TypeInfo::m_Types[i]->IsDescendantOf (RUNTIME_CLASS(AKey)))
|
||||
{
|
||||
|
|
@ -596,7 +596,7 @@ void cht_Give (player_t *player, char *name, int amount)
|
|||
if (giveall || stricmp (name, "weapons") == 0)
|
||||
{
|
||||
AWeapon *savedpending = player->PendingWeapon;
|
||||
for (i = 0; i < TypeInfo::m_NumTypes; ++i)
|
||||
for (unsigned int i = 0; i < TypeInfo::m_Types.Size(); ++i)
|
||||
{
|
||||
type = TypeInfo::m_Types[i];
|
||||
if (type != RUNTIME_CLASS(AWeapon) &&
|
||||
|
|
@ -617,7 +617,7 @@ void cht_Give (player_t *player, char *name, int amount)
|
|||
|
||||
if (giveall || stricmp (name, "artifacts") == 0)
|
||||
{
|
||||
for (i = 0; i < TypeInfo::m_NumTypes; ++i)
|
||||
for (unsigned int i = 0; i < TypeInfo::m_Types.Size(); ++i)
|
||||
{
|
||||
type = TypeInfo::m_Types[i];
|
||||
if (type->IsDescendantOf (RUNTIME_CLASS(AInventory)))
|
||||
|
|
@ -638,7 +638,7 @@ void cht_Give (player_t *player, char *name, int amount)
|
|||
|
||||
if (giveall || stricmp (name, "puzzlepieces") == 0)
|
||||
{
|
||||
for (i = 0; i < TypeInfo::m_NumTypes; ++i)
|
||||
for (unsigned int i = 0; i < TypeInfo::m_Types.Size(); ++i)
|
||||
{
|
||||
type = TypeInfo::m_Types[i];
|
||||
if (type->IsDescendantOf (RUNTIME_CLASS(APuzzleItem)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue