Drop useless test in render_side
Descent 2, but not Descent 1, had a useless test in render_side: type == QUAD ? 0 : type == TRI_13 ? 1 : 0 This is useless since, if type is not QUAD, the second expression will apply. If type is QUAD, then the type is not TRI_13, so the second expression would choose the same result as the first. The extra comparison does not save any work, so it is useless. Remove it.
This commit is contained in:
parent
f2a8be23a9
commit
6bd653bb16
|
@ -486,10 +486,6 @@ static void render_side(fvcvertptr &vcvertptr, grs_canvas &canvas, const vcsegpt
|
|||
// deal with it, get the dot product.
|
||||
const auto sidep = &segp->sides[sidenum];
|
||||
const unsigned which_vertnum =
|
||||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
/* Silly, but consistent with how it was at release */
|
||||
(sidep->get_type() == SIDE_IS_QUAD) ? 0 :
|
||||
#endif
|
||||
(sidep->get_type() == SIDE_IS_TRI_13)
|
||||
? 1
|
||||
: 0;
|
||||
|
|
Loading…
Reference in a new issue