- moved most content of p_setup.cpp into a MapLoader class.

This commit is contained in:
Christoph Oelckers 2018-12-27 09:44:49 +01:00
commit 2e22c01d45
10 changed files with 511 additions and 451 deletions

View file

@ -1477,6 +1477,39 @@ CUSTOM_CVAR(Int, r_fakecontrast, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
else if (self > 2) self = 2;
}
//===========================================================================
//
//
//
//===========================================================================
void line_t::AdjustLine()
{
setDelta(v2->fX() - v1->fX(), v2->fY() - v1->fY());
if (v1->fX() < v2->fX())
{
bbox[BOXLEFT] = v1->fX();
bbox[BOXRIGHT] = v2->fX();
}
else
{
bbox[BOXLEFT] = v2->fX();
bbox[BOXRIGHT] = v1->fX();
}
if (v1->fY() < v2->fY())
{
bbox[BOXBOTTOM] = v1->fY();
bbox[BOXTOP] = v2->fY();
}
else
{
bbox[BOXBOTTOM] = v2->fY();
bbox[BOXTOP] = v1->fY();
}
}
//==========================================================================
//
//