minor fix for unwind/rewind display string

This commit is contained in:
Thomas Jentzsch 2023-01-29 10:01:38 +01:00
parent b71573f1f6
commit 5f1f90260c
1 changed files with 4 additions and 1 deletions

View File

@ -393,7 +393,10 @@ string RewindManager::loadState(Int64 startCycles, uInt32 numStates)
const Int64 diff = startCycles - state.cycles;
stringstream message;
message << (diff >= 0 ? "Rewind" : "Unwind") << " " << getUnitString(diff);
if(diff)
message << (diff > 0 ? "Rewind" : "Unwind") << " " << getUnitString(diff);
else
message << "No wind";
message << " [" << myStateList.currentIdx() << "/" << myStateList.size() << "]";
// add optional message