diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-17 20:22:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 20:22:57 +0200 |
commit | cf865597f8f14c56e96b22b9a7fef1b693fbcb08 (patch) | |
tree | f9792d33d19984f67c8514e9223a06a8ee4c08ee /bin/game | |
parent | b45c006ab9bdfb92fa6be66dcfa00099adbb85a8 (diff) | |
download | openttd-cf865597f8f14c56e96b22b9a7fef1b693fbcb08.tar.xz |
Fix: don't propagate shift/ctrl state till next game-tick (#9381)
When the game-loop is very slow, it was easily possible to start
the loop with _shift_pressed being false, but end with
_shift_pressed being true. This doesn't hurt the game as such,
but for the user this can be very weird: I pressed "Buy Vehicle",
pressed shift a bit later, and I still get a cost indication.
Diffstat (limited to 'bin/game')
0 files changed, 0 insertions, 0 deletions