diff options
author | Alyssa Milburn | 2012-08-22 14:00:46 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-08-22 21:51:51 +0200 |
commit | c3407390013b1e1826bdb31979a50f5e8a957f04 (patch) | |
tree | 4da60e960d3b2d34da582b06bbcdcd714d736df0 /engines/tony/loc.cpp | |
parent | 482c1a71b04bf1b5d0f18847ce445c45085e77fa (diff) | |
download | scummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.tar.gz scummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.tar.bz2 scummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.zip |
TONY: Replace _vm with g_vm.
Diffstat (limited to 'engines/tony/loc.cpp')
-rw-r--r-- | engines/tony/loc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tony/loc.cpp b/engines/tony/loc.cpp index d02bd9640f..eaed3b49e2 100644 --- a/engines/tony/loc.cpp +++ b/engines/tony/loc.cpp @@ -157,7 +157,7 @@ int RMPattern::init(RMSfx *sfx, bool bPlayP0, byte *bFlag) { int i; // Read the current time - _nStartTime = _vm->getTime(); + _nStartTime = g_vm->getTime(); _nCurSlot = 0; // Find the first frame of the pattern @@ -210,7 +210,7 @@ int RMPattern::init(RMSfx *sfx, bool bPlayP0, byte *bFlag) { } int RMPattern::update(uint32 hEndPattern, byte &bFlag, RMSfx *sfx) { - int CurTime = _vm->getTime(); + int CurTime = g_vm->getTime(); // If the speed is 0, then the pattern never advances if (_speed == 0) { @@ -408,7 +408,7 @@ void RMSfx::readFromStream(RMDataStream &ds, bool bLOX) { Common::SeekableReadStream *stream = new Common::MemoryReadStream(buffer, size, DisposeAfterUse::YES); // Create the sound effect - _fx = _vm->createSFX(stream); + _fx = g_vm->createSFX(stream); _fx->setLoop(false); } @@ -2083,10 +2083,10 @@ bool RMLocation::load(RMDataStream &ds) { _items = new RMItem[_nItems]; - _vm->freezeTime(); + g_vm->freezeTime(); for (i = 0; i < _nItems && !ds.isError(); i++) ds >> _items[i]; - _vm->unfreezeTime(); + g_vm->unfreezeTime(); return ds.isError(); } |