- DamageFactor fixed

SVN r520 (trunk)
This commit is contained in:
Christoph Oelckers 2007-04-28 22:03:18 +00:00
commit 725c6d195e
3 changed files with 26 additions and 26 deletions

View file

@ -1179,7 +1179,6 @@ static FActorInfo * CreateNewActor(FActorInfo ** parentc, Baggage *bag)
info->DamageFactors = new DmgFactors;
*info->DamageFactors = *parent->ActorInfo->DamageFactors;
}
else info->DamageFactors = NULL;
// Check for "replaces"
SC_MustGetString ();
@ -3194,7 +3193,7 @@ static void ActorDamageFactor (AActor *defaults, Baggage &bag)
SC_MustGetToken(',');
SC_MustGetFloat();
bag.Info->DamageFactors[dmgType]=(fixed_t)(sc_Float*FRACUNIT);
(*bag.Info->DamageFactors)[dmgType]=(fixed_t)(sc_Float*FRACUNIT);
}
//==========================================================================