mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-23 16:48:52 -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);
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user