ASYLUM: Use typed resource ID

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@468 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
This commit is contained in:
Julien Templier 2010-11-03 04:28:42 +00:00 committed by Eugene Sandulenko
parent 3935d274fa
commit ffddfcd8db
No known key found for this signature in database
GPG key ID: 014D387312D34F08
35 changed files with 389 additions and 375 deletions

View file

@ -185,8 +185,8 @@ void AsylumEngine::playIntro() {
_video->playVideo(1, Config.showMovieSubtitles);
if (_scene->worldstats()->musicCurrentResId != -666)
_sound->playMusic(_scene->worldstats()->musicCurrentResId);
if (_scene->worldstats()->musicCurrentResourceId != -666)
_sound->playMusic(_scene->worldstats()->musicCurrentResourceId);
_screen->clearScreen();
@ -224,7 +224,7 @@ void AsylumEngine::handleEvents(bool doUpdate) { // k_sub_40AE30 (0040AE30)
// the alarm by flipping the switch. The sound class needs to be extended
// to be able to handle multiple handles.
// The currently active sound resources can probably also be buffered into
// the scene's soundResId[] array (seems that's the way the original worked,
// the scene's soundResourceId[] array (seems that's the way the original worked,
// especially when you examine isSoundinList() or isSoundPlaying())
_scene->enterScene();