- 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:
Randy Heit 2012-03-23 20:57:10 +00:00
commit 49ea87f8bc
3 changed files with 36 additions and 10 deletions

View file

@ -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