diff options
author | Strangerke | 2017-01-05 08:56:49 -0800 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:21 +0100 |
commit | 05833d27e342336d37d80863bac11c028926a50e (patch) | |
tree | 1ea9e81b185e692c4dac84076448d167451d21a6 /engines/cryo/cryolib.cpp | |
parent | e20f65e5ea3eac8420fc5b54e5ad64d538b98148 (diff) | |
download | scummvm-rg350-05833d27e342336d37d80863bac11c028926a50e.tar.gz scummvm-rg350-05833d27e342336d37d80863bac11c028926a50e.tar.bz2 scummvm-rg350-05833d27e342336d37d80863bac11c028926a50e.zip |
CRYO: Remove some useless variables
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r-- | engines/cryo/cryolib.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index 6b0ff64518..7db9dfa17c 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -43,15 +43,14 @@ void FlushEvents(int16 arg1, int16 arg2) { View::View(CryoEngine *vm, int w, int h) : _vm(vm) { void *buffer = (byte *)malloc(w * h); - if (buffer) { - _allocated = true; + if (buffer) initDatas(w, h, buffer); - } else + else error("Unable to allocate view buffer"); } View::~View() { - if (_bufferPtr && _allocated) + if (_bufferPtr) free(_bufferPtr); } @@ -335,9 +334,6 @@ Sound::Sound(int16 length, float rate, int16 sampleSize, int16 mode) { _length = 0; _mode = 0; - _loopStart = 0; - _loopTimes = 0; - _reversed = false; _volume = 0; _maxLength = length; @@ -367,9 +363,6 @@ void CLSoundRaw_AssignBuffer(Sound *sound, void *buffer, int bufferOffs, int len void Sound::prepareSample(int16 mode) { _mode = mode; - _loopTimes = 0; - _reversed = false; - _unused32 = 0; _volume = 255; } |