mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-10-06 06:00:27 +00:00
only "continue previous delay" if delay is 0
This commit is contained in:
parent
ccdb8ab3c0
commit
5cef748ac7
@ -428,7 +428,9 @@ int16 PrimeTime(uint32 tm, int32 time)
|
|||||||
// or (b) "continue previous delay" if an expired task was stopped via RmvTime() and
|
// or (b) "continue previous delay" if an expired task was stopped via RmvTime() and
|
||||||
// then re-installed using InsXTime(). Since tmWakeUp was set, this is case (b).
|
// then re-installed using InsXTime(). Since tmWakeUp was set, this is case (b).
|
||||||
// The remaining time was saved in tmCount by RmvTime().
|
// The remaining time was saved in tmCount by RmvTime().
|
||||||
timer_mac2host_time(delay, ReadMacInt16(tm + tmCount));
|
if (time == 0) {
|
||||||
|
timer_mac2host_time(delay, ReadMacInt16(tm + tmCount));
|
||||||
|
}
|
||||||
|
|
||||||
// Yes, calculate wakeup time relative to last scheduled time
|
// Yes, calculate wakeup time relative to last scheduled time
|
||||||
tm_time_t wakeup;
|
tm_time_t wakeup;
|
||||||
|
Loading…
Reference in New Issue
Block a user