- Fixed: Armor did not use damagefactor "Normal" as a fallback factor.
SVN r3469 (trunk)
This commit is contained in:
parent
bff5a9b8d8
commit
9fcc6ebc89
5 changed files with 29 additions and 10 deletions
19
src/info.cpp
19
src/info.cpp
|
|
@ -344,6 +344,25 @@ void FActorInfo::SetColorSet(int index, const FPlayerColorSet *set)
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// DmgFactors :: CheckFactor
|
||||
//
|
||||
// Checks for the existance of a certain damage type. If that type does not
|
||||
// exist, the damage factor for type 'None' will be returned, if present.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
fixed_t *DmgFactors::CheckFactor(FName type)
|
||||
{
|
||||
fixed_t *pdf = CheckKey(type);
|
||||
if (pdf == NULL && type != NAME_None)
|
||||
{
|
||||
pdf = CheckKey(NAME_None);
|
||||
}
|
||||
return pdf;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue