mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix shootline not being updated if press and release happen in the same step (#14606)
This commit is contained in:
parent
70bddcf318
commit
d7f9da49eb
2 changed files with 6 additions and 1 deletions
|
@ -259,6 +259,9 @@ private:
|
|||
u64 m_move_downtime = 0;
|
||||
// m_move_pos stays valid even after m_move_id has been released.
|
||||
v2s32 m_move_pos;
|
||||
// This is needed so that we don't miss if m_has_move_id is true for less
|
||||
// than one client step, i.e. press and release happen in the same step.
|
||||
bool m_had_move_id = false;
|
||||
|
||||
bool m_has_joystick_id = false;
|
||||
size_t m_joystick_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue