- made player_t::crouchoffset and FPlayerStart's coordinates doubles and added a float version of divline_t so that I could complete the conversion of Hexen's game code.
- consolidated the actor based damage factor code which was repeated multiple times in various damage inflicting functions.
This commit is contained in:
parent
c830801da3
commit
4155e84a1c
24 changed files with 133 additions and 121 deletions
|
|
@ -1217,7 +1217,7 @@ DEFINE_PROPERTY(deathtype, S, Actor)
|
|||
DEFINE_PROPERTY(damagefactor, ZF, Actor)
|
||||
{
|
||||
PROP_STRING_PARM(str, 0);
|
||||
PROP_FIXED_PARM(id, 1);
|
||||
PROP_DOUBLE_PARM(id, 1);
|
||||
|
||||
if (str == NULL)
|
||||
{
|
||||
|
|
@ -1229,7 +1229,7 @@ DEFINE_PROPERTY(damagefactor, ZF, Actor)
|
|||
if (!stricmp(str, "Normal")) dmgType = NAME_None;
|
||||
else dmgType=str;
|
||||
|
||||
info->SetDamageFactor(dmgType, id);
|
||||
info->SetDamageFactor(dmgType, FLOAT2FIXED(id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue