Clean up confusing loop control in fairland
This commit is contained in:
parent
e38ba07426
commit
191c5bea0f
1 changed files with 4 additions and 2 deletions
|
@ -486,7 +486,7 @@ init(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < nc; ++i, xx += 2) {
|
for (i = 0; i < nc; ++i) {
|
||||||
if (xx >= WORLD_X) {
|
if (xx >= WORLD_X) {
|
||||||
++yy;
|
++yy;
|
||||||
xx = yy % 2;
|
xx = yy % 2;
|
||||||
|
@ -497,6 +497,7 @@ init(void)
|
||||||
}
|
}
|
||||||
capx[i] = xx;
|
capx[i] = xx;
|
||||||
capy[i] = yy;
|
capy[i] = yy;
|
||||||
|
xx += 2;
|
||||||
}
|
}
|
||||||
for (i = 0; i < STABLE_CYCLE; ++i)
|
for (i = 0; i < STABLE_CYCLE; ++i)
|
||||||
mc[i] = i;
|
mc[i] = i;
|
||||||
|
@ -1082,7 +1083,7 @@ write_sects(void)
|
||||||
/* sct = §s[0][0]; */
|
/* sct = §s[0][0]; */
|
||||||
sct = sectsbuf;
|
sct = sectsbuf;
|
||||||
for (y = 0; y < YSIZE; y++) {
|
for (y = 0; y < YSIZE; y++) {
|
||||||
for (x = 0; x < XSIZE; x++, sct++) {
|
for (x = 0; x < XSIZE; x++) {
|
||||||
fl_sct_init(x * 2 + (y & 1), y, sct);
|
fl_sct_init(x * 2 + (y & 1), y, sct);
|
||||||
total = elev[sct->sct_x][y];
|
total = elev[sct->sct_x][y];
|
||||||
if (total < LANDMIN) {
|
if (total < LANDMIN) {
|
||||||
|
@ -1099,6 +1100,7 @@ write_sects(void)
|
||||||
sct->sct_newtype = sct->sct_type;
|
sct->sct_newtype = sct->sct_type;
|
||||||
if (ORE)
|
if (ORE)
|
||||||
add_resources(sct);
|
add_resources(sct);
|
||||||
|
sct++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (AIRPORT_MARKER)
|
if (AIRPORT_MARKER)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue