mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 18:50:51 +00:00
- Make dragpoint()
inline since its a wrapper for another function anyway.
This commit is contained in:
parent
9dd27ee3a2
commit
3db6a38b4b
2 changed files with 16 additions and 16 deletions
|
@ -402,21 +402,6 @@ bool sectorsConnected(int sect1, int sect2)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//==========================================================================
|
|
||||||
|
|
||||||
void dragpoint(walltype* startwall, const DVector2& pos)
|
|
||||||
{
|
|
||||||
vertexscan(startwall, [&](walltype* wal)
|
|
||||||
{
|
|
||||||
wal->move(pos);
|
|
||||||
wal->sectorp()->exflags |= SECTOREX_DRAGGED;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
|
@ -160,6 +160,22 @@ void vertexscan(walltype* startwall, func mark)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
inline void dragpoint(walltype* startwall, const DVector2& pos)
|
||||||
|
{
|
||||||
|
vertexscan(startwall, [&](walltype* wal)
|
||||||
|
{
|
||||||
|
wal->move(pos);
|
||||||
|
wal->sectorp()->exflags |= SECTOREX_DRAGGED;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Constants used for Build sine/cosine functions.
|
// Constants used for Build sine/cosine functions.
|
||||||
|
@ -256,7 +272,6 @@ EClose IsCloseToWall(const DVector2& vect, walltype* wal, double walldist);
|
||||||
|
|
||||||
void checkRotatedWalls();
|
void checkRotatedWalls();
|
||||||
bool sectorsConnected(int sect1, int sect2);
|
bool sectorsConnected(int sect1, int sect2);
|
||||||
void dragpoint(walltype* wal, const DVector2& pos);
|
|
||||||
int32_t inside(double x, double y, const sectortype* sect);
|
int32_t inside(double x, double y, const sectortype* sect);
|
||||||
int insidePoly(double x, double y, const DVector2* points, int count);
|
int insidePoly(double x, double y, const DVector2* points, int count);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue