From 1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 13 Dec 2015 04:12:29 +0200 Subject: LAB: Get rid of getTime(), readBlock() and getRandom() Also, simplify some time-related functions --- engines/lab/engine.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/lab/engine.cpp') diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index f0d3ab7a5b..1b77d04459 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -609,7 +609,9 @@ bool LabEngine::fromCrumbs(uint32 tmpClass, uint16 code, uint16 qualifier, Commo _followCrumbsFast = (code == 'r' || code == 'R'); _isCrumbTurning = false; _isCrumbWaiting = false; - _utils->getTime(&_crumbSecs, &_crumbMicros); + uint32 t = g_system->getMillis(); + _crumbSecs = t / 1000; + _crumbMicros = t % 1000; if (_alternate) { eatMessages(); @@ -930,7 +932,9 @@ bool LabEngine::fromCrumbs(uint32 tmpClass, uint16 code, uint16 qualifier, Commo _followCrumbsFast = false; _isCrumbTurning = false; _isCrumbWaiting = false; - _utils->getTime(&_crumbSecs, &_crumbMicros); + uint32 t = g_system->getMillis(); + _crumbSecs = t / 1000; + _crumbMicros = t % 1000; eatMessages(); _alternate = false; -- cgit v1.2.3