File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ void R_Subsector (int num)
671
671
672
672
basecolormap = frontsector->colormap ->maps ;
673
673
674
- ceilingplane = P_CeilingHeight (camera ) > viewz ||
674
+ ceilingplane = P_CeilingHeight (viewx, viewy, frontsector ) > viewz ||
675
675
frontsector->ceilingpic == skyflatnum ||
676
676
(frontsector->heightsec &&
677
677
!(frontsector->heightsec ->MoreFlags & SECF_IGNOREHEIGHTSEC) &&
@@ -691,7 +691,7 @@ void R_Subsector (int num)
691
691
// killough 3/7/98: Add (x,y) offsets to flats, add deep water check
692
692
// killough 3/16/98: add floorlightlevel
693
693
// killough 10/98: add support for skies transferred from sidedefs
694
- floorplane = P_FloorHeight (camera ) < viewz || // killough 3/7/98
694
+ floorplane = P_FloorHeight (viewx, viewy, frontsector ) < viewz || // killough 3/7/98
695
695
(frontsector->heightsec &&
696
696
!(frontsector->heightsec ->MoreFlags & SECF_IGNOREHEIGHTSEC) &&
697
697
frontsector->heightsec ->ceilingpic == skyflatnum) ?
Original file line number Diff line number Diff line change 45
45
46
46
#include < ctype.h>
47
47
48
+ #include < cmath>
49
+
48
50
#include < algorithm>
49
51
50
52
//
@@ -478,7 +480,7 @@ tallpost_t* R_GetTextureColumn(int texnum, int colnum)
478
480
if (mask + 1 == width)
479
481
colnum &= mask;
480
482
else
481
- colnum % = width;
483
+ colnum - = width * std::floor (( float )colnum / ( float )width) ;
482
484
int lump = texturecolumnlump[texnum][colnum];
483
485
int ofs = texturecolumnofs[texnum][colnum];
484
486
You can’t perform that action at this time.
0 commit comments