diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 1856eee6e..d8c9ec555 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,8 @@ -February 25, 2009 (Changes by Graf Zahl) +February 26, 2009 +- Removed an early-out in wallscan_striped() that is invalid when drawing a + skybox. + +February 25, 2009 (Changes by Graf Zahl) - fixed: nextmap and nextsecret CCMDs set skill to 0. - fixed: level.flags2 was not stored in savegames. Also bumped min. savegame version and removed old compatibility handlings. diff --git a/src/r_segs.cpp b/src/r_segs.cpp index d2c7accdf..e745cb70a 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -589,6 +589,9 @@ void wallscan_striped (int x1, int x2, short *uwal, short *dwal, fixed_t *swal, up = uwal; down = most1; + assert(WallSX1 <= x1); + assert(WallSX2 > x2); + for (int i = 0; i < el->NumUsedLights; ++i) { if (flooding && !el->Lights[i].bFlooder) @@ -605,7 +608,7 @@ void wallscan_striped (int x1, int x2, short *uwal, short *dwal, fixed_t *swal, //break; } - if (j != 3 && (most3[x1] > up[x1] || most3[x2] > up[x2])) + if (j != 3 /*&& (most3[x1] > up[x1] || most3[x2] > up[x2])*/) { for (int j = x1; j <= x2; ++j) {