Reduce ship rocking during countdown
A prior change switched to using the greater, rather than the lesser, of
`16` or `Countdown_seconds_left`, which increased the rotation from the
ship rocking effect. Switch back to use the lesser value.
Reported-by: zicodxx <https://github.com/dxx-rebirth/dxx-rebirth/issues/431>
Fixes: 644d6fa513
("Simplify do_countdown_frame ship rocking effect")
This commit is contained in:
parent
1eaaff3016
commit
75de1c23c1
|
@ -203,7 +203,7 @@ window_event_result do_countdown_frame()
|
|||
if (d_tick_step)
|
||||
{
|
||||
auto &rotvel = ConsoleObject->mtype.phys_info.rotvel;
|
||||
const auto get_base_disturbance = [fc = std::max(Countdown_seconds_left, 16)]() {
|
||||
const auto get_base_disturbance = [fc = std::min(Countdown_seconds_left, 16)]() {
|
||||
return fixmul(d_rand() - 16384, 3 * F1_0 / 16 + (F1_0 * (16 - fc)) / 32);
|
||||
};
|
||||
fix disturb_x = get_base_disturbance(), disturb_z = get_base_disturbance();
|
||||
|
|
Loading…
Reference in a new issue