From 84cad29ed62954a15dadcc82f61ee3228ba04136 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 3 Dec 2012 07:52:31 +0100 Subject: HOPKINS: Rewrite a for statement in previous commit --- engines/hopkins/hopkins.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp index 062337df4d..0ce9b6d1cb 100644 --- a/engines/hopkins/hopkins.cpp +++ b/engines/hopkins/hopkins.cpp @@ -154,12 +154,10 @@ bool HopkinsEngine::runWin95Demo() { _globals.iRegul = 1; _globals.vitesse = 1; - int v23 = 1; - do { - ++v23; + for (int i = 1; i < 50; i++) { _graphicsManager.SCOPY(_graphicsManager.VESA_SCREEN, 0, 0, 640, 440, _graphicsManager.VESA_BUFFER, 0, 0); _eventsManager.VBL(); - } while (v23 < 50); + } _globals.iRegul = 0; warning("TODO SPEEDJ = _globals.lItCounter;"); -- cgit v1.2.3