- Make dragpoint() inline since its a wrapper for another function anyway.

This commit is contained in:
Mitchell Richters 2022-09-30 14:22:38 +10:00 committed by Christoph Oelckers
parent 9dd27ee3a2
commit 3db6a38b4b
2 changed files with 16 additions and 16 deletions

View file

@ -402,21 +402,6 @@ bool sectorsConnected(int sect1, int sect2)
return false;
}
//==========================================================================
//
//
//
//==========================================================================
void dragpoint(walltype* startwall, const DVector2& pos)
{
vertexscan(startwall, [&](walltype* wal)
{
wal->move(pos);
wal->sectorp()->exflags |= SECTOREX_DRAGGED;
});
}
//==========================================================================
//
//

View file

@ -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.
@ -256,7 +272,6 @@ EClose IsCloseToWall(const DVector2& vect, walltype* wal, double walldist);
void checkRotatedWalls();
bool sectorsConnected(int sect1, int sect2);
void dragpoint(walltype* wal, const DVector2& pos);
int32_t inside(double x, double y, const sectortype* sect);
int insidePoly(double x, double y, const DVector2* points, int count);