Fix issue with simulated input lag (#1535)

This commit is contained in:
Garrett Cox 2022-09-20 22:25:01 -05:00 committed by GitHub
parent 936c493b9e
commit d47746eab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {