dxx-rebirth/similar
Kp 685137d5f5 Fix infinite loop in newmenu default handler
If no character matches the typed character, the loop should exit when
`lb->citem == cc`, which should happen after every entry is visited
once.  However, if no item is selected, `lb->citem == -1`, and `cc` is
never `-1`, so the exit path never triggers.  Rewrite the loop to be
bounded by number of steps, rather than bounded by returning to a
particular offset.  This also protects against undefined behavior if the
menu had zero elements.
2018-04-28 21:58:46 +00:00
..
2d Remove build_colormap_good parameter used 2018-03-08 04:21:18 +00:00
3d Use constexpr integral_constant for various magic numbers 2017-10-14 17:10:30 +00:00
arch Add missing glDisableClientState call. 2018-04-22 23:31:27 -07:00
editor Pass vertex factory to compute_center_point_on_side 2018-03-12 03:43:47 +00:00
main Fix infinite loop in newmenu default handler 2018-04-28 21:58:46 +00:00
misc Replace useless printf with puts 2017-12-05 05:29:55 +00:00