mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Duke: Fix some broken checks in FinalizeInput()
stemming from 5f33b0087f
.
This commit is contained in:
parent
4397646cc4
commit
bcb838f3fb
1 changed files with 6 additions and 9 deletions
|
@ -794,17 +794,14 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle)
|
|||
loc.svel = input.svel = 0;
|
||||
}
|
||||
|
||||
if (p->newOwner != nullptr)
|
||||
if (p->newOwner != nullptr || p->on_crane != nullptr)
|
||||
{
|
||||
if (p->on_crane != nullptr)
|
||||
{
|
||||
loc.avel = input.avel = 0;
|
||||
}
|
||||
loc.avel = input.avel = 0;
|
||||
}
|
||||
|
||||
if ((p->sync.actions & SB_CENTERVIEW) || (!(p->sync.actions & SB_CENTERVIEW) && abs(p->horizon.horiz.asbuild()) > 5))
|
||||
{
|
||||
loc.horz = input.horz = 0;
|
||||
}
|
||||
if (p->newOwner != nullptr || (p->sync.actions & SB_CENTERVIEW && abs(p->horizon.horiz.asbuild()) > 5))
|
||||
{
|
||||
loc.horz = input.horz = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue