dxx-rebirth/similar
Kp 87cc4c79c8 Fix off-by-one in mission string count
Commit 7f2df64649 converted `mission_menu` to inherit from `listbox`,
but introduced an off-by-one bug in the handling of subdirectories.
`listbox` must be told how many strings it is given.  Subdirectories
have one extra string, to represent the `listbox_go_up` element.  The
count passed to `listbox` incorrectly failed to adjust for the generated
go-up element, causing listbox not to show the last string in the list.
Change the logic to adjust the count to include the extra element.

Fixes: 7f2df64649 ("Make mission_menu inherit from listbox")
Reported-by: AlumiuN <https://github.com/dxx-rebirth/dxx-rebirth/issues/629>
2022-04-12 03:01:48 +00:00
..
2d Fix SDL-only build 2021-11-01 03:37:20 +00:00
3d Move rotate_point_list inline in g3_interpreter_draw_base 2021-11-01 03:37:20 +00:00
arch Always check return value of PHYSFSX_getRealPath 2022-03-19 22:55:58 +00:00
editor Move joystick interpretation to happen after the event loop 2022-02-27 14:23:53 +00:00
main Fix off-by-one in mission string count 2022-04-12 03:01:48 +00:00
misc Always check return value of PHYSFSX_getRealPath 2022-03-19 22:55:58 +00:00