mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-06-28 14:30:04 +00:00
Turning off acceleration resets to the user-defined speed instead of 1mhz
This commit is contained in:
parent
dabf70c3cf
commit
55e7a87cc5
|
@ -80,7 +80,7 @@ public class ZipWarpAccelerator extends Device {
|
|||
if (debugMessagesEnabled) {
|
||||
System.out.println("Warp disabled.");
|
||||
}
|
||||
setSpeed(SPEED._1);
|
||||
turnOffAcceleration();
|
||||
}
|
||||
}
|
||||
} else if (!zipLocked && isWrite) {
|
||||
|
@ -119,7 +119,7 @@ public class ZipWarpAccelerator extends Device {
|
|||
System.out.println("MAXIMUM WARP!");
|
||||
}
|
||||
} else {
|
||||
setSpeed(SPEED._1);
|
||||
turnOffAcceleration();
|
||||
if (debugMessagesEnabled) {
|
||||
System.out.println("Warp disabled.");
|
||||
}
|
||||
|
@ -188,6 +188,11 @@ public class ZipWarpAccelerator extends Device {
|
|||
Emulator.computer.getMotherboard().reconfigure();
|
||||
}
|
||||
|
||||
private void turnOffAcceleration() {
|
||||
// The UI Logic retains the user's desired normal speed, reset to that
|
||||
Emulator.logic.reconfigure();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick() {
|
||||
if (zipUnlockCount > 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user