- Fixed: Poison damage lost damage type information if the poisoner was destroyed before poisoncount
reached 0. - Fixed: Poisoners without a PainType should use their own DamageType to pick the Pain state to make the target enter, not the target's DamageType. SVN r3475 (trunk)
This commit is contained in:
parent
3e4ac58f7c
commit
49ea87f8bc
3 changed files with 36 additions and 10 deletions
|
|
@ -2658,6 +2658,16 @@ void player_t::Serialize (FArchive &arc)
|
|||
<< original_cmd
|
||||
<< original_oldbuttons;
|
||||
|
||||
if (SaveVersion >= 3475)
|
||||
{
|
||||
arc << poisontype << poisonpaintype;
|
||||
}
|
||||
else if (poisoner != NULL)
|
||||
{
|
||||
poisontype = poisoner->DamageType;
|
||||
poisonpaintype = poisoner->PainType != NAME_None ? poisoner->PainType : poisoner->DamageType;
|
||||
}
|
||||
|
||||
if (isbot)
|
||||
{
|
||||
arc << angle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue