mirror of https://github.com/nothings/stb.git
Avoiding conditional directives that break statements
parent
64fa9a3d95
commit
a55647b9c3
|
@ -3127,15 +3127,15 @@ static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *f
|
||||||
} else {
|
} else {
|
||||||
Floor1 *g = &f->floor_config[floor].floor1;
|
Floor1 *g = &f->floor_config[floor].floor1;
|
||||||
int j,q;
|
int j,q;
|
||||||
int lx = 0, ly = finalY[0] * g->floor1_multiplier;
|
int lx = 0, ly = finalY[0] * g->floor1_multiplier, test_final_exists;
|
||||||
for (q=1; q < g->values; ++q) {
|
for (q=1; q < g->values; ++q) {
|
||||||
j = g->sorted_order[q];
|
j = g->sorted_order[q];
|
||||||
#ifndef STB_VORBIS_NO_DEFER_FLOOR
|
#ifndef STB_VORBIS_NO_DEFER_FLOOR
|
||||||
if (finalY[j] >= 0)
|
test_final_exists = finalY[j] >= 0;
|
||||||
#else
|
#else
|
||||||
if (step2_flag[j])
|
test_final_exists = step2_flag[j];
|
||||||
#endif
|
#endif
|
||||||
{
|
if (test_final_exists) {
|
||||||
int hy = finalY[j] * g->floor1_multiplier;
|
int hy = finalY[j] * g->floor1_multiplier;
|
||||||
int hx = g->Xlist[j];
|
int hx = g->Xlist[j];
|
||||||
if (lx != hx)
|
if (lx != hx)
|
||||||
|
|
Loading…
Reference in New Issue