dxx-rebirth/similar/main
Kp 078a9affa0 Make MAX_SIDES_PER_SEGMENT an iterable range
Iterating over it returns each side number in turn.  This allows
converting many loops of the form:

```
	for (int i = 0; i < MAX_SIDES_PER_SEGMENT; ++i)
```

to the compact form:

```
	for (const auto i : MAX_SIDES_PER_SEGMENT)
```

The compact form brings the usual benefit of range-based for: delegating
iteration to the compiler prevents the loop body from skipping a step,
and makes clear in the code that this is the case.
2022-01-09 15:25:42 +00:00
..
ai.cpp Tighten index handling for Ai_transition_table 2022-01-08 17:48:09 +00:00
aipath.cpp Convert some bare integers to sidenum_t 2022-01-09 15:25:42 +00:00
automap.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
bm.cpp
bmread.cpp
cntrlcen.cpp
collide.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
config.cpp
console.cpp
controls.cpp
credits.cpp
digiobj.cpp
dumpmine.cpp
effects.cpp
endlevel.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
fireball.cpp
fuelcen.cpp
fvi.cpp
game.cpp
gamecntl.cpp
gamefont.cpp
gamemine.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
gamerend.cpp
gamesave.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
gameseg.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
gameseq.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
gauges.cpp
generate-kconfig-udlr.py
hostage.cpp
hud.cpp
iff.cpp
inferno.cpp
kconfig.cpp
kconfig.ui-table.cpp
kmatrix.cpp
laser.cpp
lighting.cpp
menu.cpp
mglobal.cpp
mission.cpp
morph.cpp
multi.cpp Convert ai_static::CURRENT_STATE to ai_static_state 2022-01-08 17:48:09 +00:00
multibot.cpp Move REMOTE_SLOT_NUM out of ai_static::flags 2022-01-08 17:48:09 +00:00
net_udp.cpp Move REMOTE_SLOT_NUM out of ai_static::flags 2022-01-08 17:48:09 +00:00
newdemo.cpp
newmenu.cpp
object.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
paging.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
physics.cpp
piggy.cpp Remove unused-but-set variable similar/main/piggy.cpp: sbytes 2022-01-07 04:26:22 +00:00
player.cpp
playsave.cpp
polyobj.cpp
powerup.cpp
render.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
robot.cpp
scores.cpp
segment.cpp Convert ai_static::GOALSIDE to sidenum_t 2022-01-08 17:48:09 +00:00
slew.cpp
songs.cpp
state.cpp Convert ai_static::CURRENT_STATE to ai_static_state 2022-01-08 17:48:09 +00:00
switch.cpp
terrain.cpp
texmerge.cpp
text.cpp
titles.cpp
vclip.cpp
vers_id.cpp
wall.cpp
weapon.cpp