1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-11 09:50:34 +00:00

manual-animation: 'u' now can clear the whole recording

This commit is contained in:
Zeno Rogue 2020-02-13 11:04:52 +01:00
parent 541448ca38
commit 689adb8681

View File

@ -339,10 +339,10 @@ bool trailer_handleKey(int sym, int uni) {
return true;
}
if(sym == 'u' && isize(saved) > 40) {
for(int i=0; i<30; i++) saved.pop_back();
if(sym == 'u') {
for(int i=0; i<30; i++) if(isize(saved)) saved.pop_back();
println(hlog, "back to ", isize(saved), " frames");
recall();
if(isize(saved)) recall();
return true;
}