- Fixed: The Cacodemon had a FastSpeed definition even though it shouldn't.

- Fixed: FastSpeed was used unconditionally when defined.


SVN r372 (trunk)
This commit is contained in:
Christoph Oelckers 2006-11-02 07:23:08 +00:00
commit c745c635db
3 changed files with 6 additions and 2 deletions

View file

@ -3110,7 +3110,8 @@ AActor *AActor::StaticSpawn (const PClass *type, fixed_t ix, fixed_t iy, fixed_t
actor->frame = st->GetFrame();
actor->renderflags = (actor->renderflags & ~RF_FULLBRIGHT) | st->GetFullbright();
actor->touching_sectorlist = NULL; // NULL head of sector list // phares 3/13/98
actor->Speed = actor->GetClass()->Meta.GetMetaFixed(AMETA_FastSpeed, actor->Speed);
if (gameskill == sk_nightmare || (dmflags & DF_FAST_MONSTERS))
actor->Speed = actor->GetClass()->Meta.GetMetaFixed(AMETA_FastSpeed, actor->Speed);
// set subsector and/or block links
actor->LinkToWorld (SpawningMapThing);