- Backported 2 fixes from Skulltag:
* A_SentinelAttack must check for a NULL target
* Monsters with CANTLEAVEFLOORPIC could not move because their floor
texture was not initialized.
SVN r1715 (trunk)
This commit is contained in:
parent
e7e79e27ff
commit
19f8b03738
3 changed files with 16 additions and 0 deletions
|
|
@ -269,6 +269,12 @@ void P_FindFloorCeiling (AActor *actor, bool onlyspawnpos)
|
|||
else
|
||||
{
|
||||
actor->floorsector = actor->ceilingsector = actor->Sector;
|
||||
// [BB] Don't forget to update floorpic and ceilingpic.
|
||||
if (actor->Sector != NULL)
|
||||
{
|
||||
actor->floorpic = actor->Sector->GetTexture(sector_t::floor);
|
||||
actor->ceilingpic = actor->Sector->GetTexture(sector_t::ceiling);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue