- Fixed: PIT_FindFloorCeiling required tmx and tmy to be set but
P_FindFloorCeiling never did that. - Merged Check_Sides and PIT_CrossLine into A_PainShootSkull. - Replaced P_BlockLinesIterator with FBlockLinesIterator in all places it was used. This also allowed to remove all the global variable saving in P_CreateSecNodeList. - Added a new FBlockLinesIterator class that doesn't need a callback function because debugging the previous bug proved to be a bit annoying because it involved a P_BlockLinesIterator loop. - Fixed: The MBF code to move monsters away from dropoffs did not work as intended due to some random decisions in P_DoNewChaseDir. When in the avoiding dropoff mode these are ignored now. This should cure the problem that monsters hanging over a dropoff tended to drop down. SVN r887 (trunk)
This commit is contained in:
parent
d938121378
commit
ebd17de30a
16 changed files with 393 additions and 424 deletions
|
|
@ -25,17 +25,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "m_bbox.h"
|
||||
|
||||
FBoundingBox::FBoundingBox ()
|
||||
{
|
||||
ClearBox ();
|
||||
}
|
||||
|
||||
void FBoundingBox::ClearBox ()
|
||||
{
|
||||
m_Box[BOXTOP] = m_Box[BOXRIGHT] = FIXED_MIN;
|
||||
m_Box[BOXBOTTOM] = m_Box[BOXLEFT] = FIXED_MAX;
|
||||
}
|
||||
#include "p_local.h"
|
||||
|
||||
void FBoundingBox::AddToBox (fixed_t x, fixed_t y)
|
||||
{
|
||||
|
|
@ -50,6 +40,11 @@ void FBoundingBox::AddToBox (fixed_t x, fixed_t y)
|
|||
m_Box[BOXTOP] = y;
|
||||
}
|
||||
|
||||
int FBoundingBox::BoxOnLineSide (const line_t *ld) const
|
||||
{
|
||||
return P_BoxOnLineSide(m_Box, ld);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue