mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-06-30 13:29:36 +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) {
|
if (debugMessagesEnabled) {
|
||||||
System.out.println("Warp disabled.");
|
System.out.println("Warp disabled.");
|
||||||
}
|
}
|
||||||
setSpeed(SPEED._1);
|
turnOffAcceleration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!zipLocked && isWrite) {
|
} else if (!zipLocked && isWrite) {
|
||||||
|
@ -119,7 +119,7 @@ public class ZipWarpAccelerator extends Device {
|
||||||
System.out.println("MAXIMUM WARP!");
|
System.out.println("MAXIMUM WARP!");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setSpeed(SPEED._1);
|
turnOffAcceleration();
|
||||||
if (debugMessagesEnabled) {
|
if (debugMessagesEnabled) {
|
||||||
System.out.println("Warp disabled.");
|
System.out.println("Warp disabled.");
|
||||||
}
|
}
|
||||||
|
@ -188,6 +188,11 @@ public class ZipWarpAccelerator extends Device {
|
||||||
Emulator.computer.getMotherboard().reconfigure();
|
Emulator.computer.getMotherboard().reconfigure();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void turnOffAcceleration() {
|
||||||
|
// The UI Logic retains the user's desired normal speed, reset to that
|
||||||
|
Emulator.logic.reconfigure();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tick() {
|
public void tick() {
|
||||||
if (zipUnlockCount > 0) {
|
if (zipUnlockCount > 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user