- Duke: Fix some broken checks in FinalizeInput() stemming from 5f33b0087f.

This commit is contained in:
Mitchell Richters 2021-01-02 10:43:03 +11:00
parent 4397646cc4
commit bcb838f3fb

View file

@ -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;
}
}
}