dxx-rebirth/similar/editor
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
..
centers.cpp Use enum class for segment_special 2021-11-01 03:37:19 +00:00
curves.cpp Replace __attribute_warn_unused_result with C++17 [[nodiscard]] 2021-06-28 03:37:51 +00:00
eglobal.cpp Remove code for ORTHO_VIEWS 2020-09-21 03:18:12 +00:00
elight.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
eobject.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
eswitch.cpp Use enum class for segment_special 2021-11-01 03:37:19 +00:00
group.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
info.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
kbuild.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
kcurve.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
kfuncs.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
kgame.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
khelp.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
kmine.cpp Use enum class for Game_mode, Newdemo_game_mode 2021-09-12 16:20:52 +00:00
ksegmove.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
ksegsel.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
ksegsize.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
ktmap.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
kview.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
med.cpp Use enum class for segment_special 2021-11-01 03:37:19 +00:00
meddraw.cpp Use enum class for packed edge in editor drawing 2021-11-01 03:37:20 +00:00
medmisc.cpp Move render_frame helper inline 2021-08-26 03:13:45 +00:00
medrobot.cpp Use structured bindings to access enumerated ranges 2021-06-28 03:37:50 +00:00
medsel.cpp Preserve type of vm_vec_mag return value 2021-09-19 10:53:48 +00:00
medwall.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
mine.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
objpage.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
segment.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
seguvs.cpp Make MAX_SIDES_PER_SEGMENT an iterable range 2022-01-09 15:25:42 +00:00
texpage.cpp Expand macro Last_level 2021-11-01 03:37:19 +00:00
texture.cpp Convert some math functions to fixang 2021-11-01 03:37:20 +00:00