Convert FakeSide to enum class
This commit is contained in:
parent
5f8075f726
commit
47ca45bf18
8 changed files with 30 additions and 27 deletions
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
namespace swrenderer
|
||||
{
|
||||
void R_ProjectParticle(particle_t *particle, const sector_t *sector, int shade, int fakeside)
|
||||
void R_ProjectParticle(particle_t *particle, const sector_t *sector, int shade, WaterFakeSide fakeside)
|
||||
{
|
||||
double tr_x, tr_y;
|
||||
double tx, ty;
|
||||
|
|
@ -134,7 +134,7 @@ namespace swrenderer
|
|||
|
||||
if (heightsec) // only clip things which are in special sectors
|
||||
{
|
||||
if (fakeside == FAKED_AboveCeiling)
|
||||
if (fakeside == WaterFakeSide::AboveCeiling)
|
||||
{
|
||||
topplane = §or->ceilingplane;
|
||||
botplane = &heightsec->ceilingplane;
|
||||
|
|
@ -142,7 +142,7 @@ namespace swrenderer
|
|||
botpic = heightsec->GetTexture(sector_t::ceiling);
|
||||
map = heightsec->ColorMap;
|
||||
}
|
||||
else if (fakeside == FAKED_BelowFloor)
|
||||
else if (fakeside == WaterFakeSide::BelowFloor)
|
||||
{
|
||||
topplane = &heightsec->floorplane;
|
||||
botplane = §or->floorplane;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue