mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-24 00:58:50 -05:00
Fix issue with simulated input lag (#1535)
This commit is contained in:
parent
936c493b9e
commit
d47746eab1
@ -79,7 +79,7 @@ namespace Ship {
|
|||||||
|
|
||||||
padBuffer.push_front(padToBuffer);
|
padBuffer.push_front(padToBuffer);
|
||||||
if (pad != nullptr) {
|
if (pad != nullptr) {
|
||||||
*pad = padBuffer[std::min(padBuffer.size(), (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
|
*pad = padBuffer[std::min(padBuffer.size() - 1, (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
|
||||||
}
|
}
|
||||||
|
|
||||||
while (padBuffer.size() > 6) {
|
while (padBuffer.size() > 6) {
|
||||||
|
Loading…
Reference in New Issue
Block a user