- did some cleanup and consolidation on damage factor code while converting it all to floating point.
- made armor properties floating point.
This commit is contained in:
parent
1eb106e2c5
commit
af427b80bd
19 changed files with 104 additions and 112 deletions
|
|
@ -715,7 +715,7 @@ void cht_Give (player_t *player, const char *name, int amount)
|
|||
{
|
||||
ABasicArmorPickup *armor = Spawn<ABasicArmorPickup> ();
|
||||
armor->SaveAmount = 100*deh.BlueAC;
|
||||
armor->SavePercent = gameinfo.Armor2Percent > 0? gameinfo.Armor2Percent : FRACUNIT/2;
|
||||
armor->SavePercent = gameinfo.Armor2Percent > 0? gameinfo.Armor2Percent : 0.5;
|
||||
if (!armor->CallTryPickup (player->mo))
|
||||
{
|
||||
armor->Destroy ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue