From 4c7f6b87f32ee892571392b6059fbd53a9382f2d Mon Sep 17 00:00:00 2001 From: Ralf Grillenberger Date: Wed, 2 Dec 2009 21:11:03 +0000 Subject: [PATCH] Initialize cyclesleft variable so events can start at emulation time 0.0. Patch by Qbix Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3512 --- src/cpu/cpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp index fdfa4c48..634558c2 100644 --- a/src/cpu/cpu.cpp +++ b/src/cpu/cpu.cpp @@ -49,7 +49,7 @@ CPUBlock cpu; Segments Segs; Bit32s CPU_Cycles = 0; -Bit32s CPU_CycleLeft = 0; +Bit32s CPU_CycleLeft = 3000; Bit32s CPU_CycleMax = 3000; Bit32s CPU_OldCycleMax = 3000; Bit32s CPU_CyclePercUsed = 100; @@ -2222,7 +2222,7 @@ public: bool Change_Config(Section* newconfig){ Section_prop * section=static_cast(newconfig); CPU_AutoDetermineMode=CPU_AUTODETERMINE_NONE; - CPU_CycleLeft=0;//needed ? + //CPU_CycleLeft=0;//needed ? CPU_Cycles=0; CPU_SkipCycleAutoAdjust=false;