- added a no-parameter Spawn function for inventory items that never show on the map, because the coordinate and replacement parameters will always be 0 for them.
- started converting g_hexen. Most importantly this removes CHolyWeave as it is just a specialized version of A_Weave with far more convoluted use of parameters.
This commit is contained in:
parent
4e60ea0252
commit
f1602882c8
33 changed files with 168 additions and 175 deletions
|
|
@ -898,7 +898,7 @@ AInventory *AActor::GiveInventoryType (PClassActor *type)
|
|||
|
||||
if (type != NULL)
|
||||
{
|
||||
item = static_cast<AInventory *>(Spawn (type, 0,0,0, NO_REPLACE));
|
||||
item = static_cast<AInventory *>(Spawn (type));
|
||||
if (!item->CallTryPickup (this))
|
||||
{
|
||||
item->Destroy ();
|
||||
|
|
@ -920,7 +920,7 @@ bool AActor::GiveAmmo (PClassAmmo *type, int amount)
|
|||
{
|
||||
if (type != NULL)
|
||||
{
|
||||
AInventory *item = static_cast<AInventory *>(Spawn (type, 0, 0, 0, NO_REPLACE));
|
||||
AInventory *item = static_cast<AInventory *>(Spawn (type));
|
||||
if (item)
|
||||
{
|
||||
item->Amount = amount;
|
||||
|
|
@ -3068,7 +3068,7 @@ bool AActor::Slam (AActor *thing)
|
|||
return false; // stop moving
|
||||
}
|
||||
|
||||
bool AActor::SpecialBlastHandling (AActor *source, fixed_t strength)
|
||||
bool AActor::SpecialBlastHandling (AActor *source, double strength)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue