diff options
Diffstat (limited to 'engines/zvision/zvision.cpp')
-rw-r--r-- | engines/zvision/zvision.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 8be85d39d4..9a93259ff4 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -61,7 +61,8 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc) _renderManager(nullptr), _saveManager(nullptr), _stringManager(nullptr), - _cursorManager(nullptr) { + _cursorManager(nullptr), + _aud_id(0) { debug(1, "ZVision::ZVision"); } @@ -182,4 +183,11 @@ Common::String ZVision::generateAutoSaveFileName() { return Common::String::format("%s.auto", _targetName.c_str()); } +int ZVision::getAudioId() { + _aud_id++; + if (_aud_id < 0) + _aud_id = 0; + return _aud_id; +} + } // End of namespace ZVision |