diff options
author | Paul Gilbert | 2016-04-28 21:34:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:22:38 -0400 |
commit | 23f5691b97cb53fd45ef411f051b7f10f0523a24 (patch) | |
tree | cee825c0c3bc4af78b22ea691897feb7f4495930 /engines/titanic/pet_control/pet_slider.cpp | |
parent | 4fd482e41813f32359eb91a2b62867605af0382c (diff) | |
download | scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.tar.gz scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.tar.bz2 scummvm-rg350-23f5691b97cb53fd45ef411f051b7f10f0523a24.zip |
TITANIC: Implement summoning NPCs
Diffstat (limited to 'engines/titanic/pet_control/pet_slider.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_slider.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_slider.cpp b/engines/titanic/pet_control/pet_slider.cpp index e8f31a70d2..82b02af3fb 100644 --- a/engines/titanic/pet_control/pet_slider.cpp +++ b/engines/titanic/pet_control/pet_slider.cpp @@ -198,7 +198,7 @@ void CPetSoundSlider::setupThumb(const CString &name, CPetControl *petControl) { void CPetSoundSlider::setupBackground2(const CString &name, CPetControl *petControl) { if (petControl) { CString numStr = "3"; - int mode = petControl->getState8(); + int mode = petControl->getPassengerClass(); if (mode <= 3) { numStr = CString(mode); } else if (mode == 4) { @@ -216,11 +216,10 @@ void CPetSoundSlider::setupBackground2(const CString &name, CPetControl *petCont void CPetSoundSlider::setupThumb2(const CString &name, CPetControl *petControl) { if (petControl) { CString numStr = "3"; - int mode = petControl->getState8(); + int mode = petControl->getPassengerClass(); if (mode <= 3) { numStr = CString(mode); - } - else if (mode == 4) { + } else if (mode == 4) { mode = petControl->getStateC(); if (mode == 1) { numStr = CString(mode); |