[Scummvm-git-logs] scummvm master -> f4c3de8da4e21311cd4e3e43c12cd1a44b79f205
dreammaster
dreammaster at scummvm.org
Sun Jan 29 05:56:09 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f4c3de8da4 TITANIC: Renamings for music controls
Commit: f4c3de8da4e21311cd4e3e43c12cd1a44b79f205
https://github.com/scummvm/scummvm/commit/f4c3de8da4e21311cd4e3e43c12cd1a44b79f205
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-01-28T23:55:54-05:00
Commit Message:
TITANIC: Renamings for music controls
Changed paths:
engines/titanic/gfx/music_control.cpp
engines/titanic/gfx/music_control.h
engines/titanic/gfx/music_slider_pitch.cpp
engines/titanic/gfx/music_slider_speed.cpp
engines/titanic/gfx/music_switch_inversion.cpp
engines/titanic/gfx/music_switch_reverse.cpp
diff --git a/engines/titanic/gfx/music_control.cpp b/engines/titanic/gfx/music_control.cpp
index 317bec2..26f2766 100644
--- a/engines/titanic/gfx/music_control.cpp
+++ b/engines/titanic/gfx/music_control.cpp
@@ -30,7 +30,7 @@ BEGIN_MESSAGE_MAP(CMusicControl, CBackground)
END_MESSAGE_MAP()
CMusicControl::CMusicControl() : CBackground(),
- _controlArea(BELLS), _controlVal(0), _controlMax(1), _fieldEC(1) {
+ _controlArea(BELLS), _controlVal(0), _controlMax(1), _enabled(true) {
}
void CMusicControl::save(SimpleFile *file, int indent) {
@@ -38,7 +38,7 @@ void CMusicControl::save(SimpleFile *file, int indent) {
file->writeNumberLine(_controlArea, indent);
file->writeNumberLine(_controlVal, indent);
file->writeNumberLine(_controlMax, indent);
- file->writeNumberLine(_fieldEC, indent);
+ file->writeNumberLine(_enabled, indent);
CBackground::save(file, indent);
}
@@ -48,7 +48,7 @@ void CMusicControl::load(SimpleFile *file) {
_controlArea = (MusicControlArea)file->readNumber();
_controlVal = file->readNumber();
_controlMax = file->readNumber();
- _fieldEC = file->readNumber();
+ _enabled = file->readNumber();
CBackground::load(file);
}
diff --git a/engines/titanic/gfx/music_control.h b/engines/titanic/gfx/music_control.h
index a0e7339..b33b4ae 100644
--- a/engines/titanic/gfx/music_control.h
+++ b/engines/titanic/gfx/music_control.h
@@ -36,7 +36,7 @@ public:
MusicControlArea _controlArea;
int _controlVal;
int _controlMax;
- int _fieldEC;
+ bool _enabled;
public:
CLASSDEF;
CMusicControl();
diff --git a/engines/titanic/gfx/music_slider_pitch.cpp b/engines/titanic/gfx/music_slider_pitch.cpp
index 5f0432e..49d53f7 100644
--- a/engines/titanic/gfx/music_slider_pitch.cpp
+++ b/engines/titanic/gfx/music_slider_pitch.cpp
@@ -41,7 +41,7 @@ void CMusicSliderPitch::load(SimpleFile *file) {
}
bool CMusicSliderPitch::MusicSettingChangedMsg(CMusicSettingChangedMsg *msg) {
- if (_fieldEC) {
+ if (_enabled) {
if (++_controlVal > _controlMax)
_controlVal = 0;
diff --git a/engines/titanic/gfx/music_slider_speed.cpp b/engines/titanic/gfx/music_slider_speed.cpp
index 93af5d8..bc04906 100644
--- a/engines/titanic/gfx/music_slider_speed.cpp
+++ b/engines/titanic/gfx/music_slider_speed.cpp
@@ -41,7 +41,7 @@ void CMusicSliderSpeed::load(SimpleFile *file) {
}
bool CMusicSliderSpeed::MusicSettingChangedMsg(CMusicSettingChangedMsg *msg) {
- if (_fieldEC) {
+ if (_enabled) {
if (++_controlVal > _controlMax)
_controlVal = 0;
diff --git a/engines/titanic/gfx/music_switch_inversion.cpp b/engines/titanic/gfx/music_switch_inversion.cpp
index d11df79..b6aa1be 100644
--- a/engines/titanic/gfx/music_switch_inversion.cpp
+++ b/engines/titanic/gfx/music_switch_inversion.cpp
@@ -41,7 +41,7 @@ void CMusicSwitchInversion::load(SimpleFile *file) {
}
bool CMusicSwitchInversion::MusicSettingChangedMsg(CMusicSettingChangedMsg *msg) {
- if (_fieldEC) {
+ if (_enabled) {
if (++_controlVal > _controlMax)
_controlVal = 0;
diff --git a/engines/titanic/gfx/music_switch_reverse.cpp b/engines/titanic/gfx/music_switch_reverse.cpp
index 9fe6d51..674119d 100644
--- a/engines/titanic/gfx/music_switch_reverse.cpp
+++ b/engines/titanic/gfx/music_switch_reverse.cpp
@@ -39,8 +39,9 @@ void CMusicSwitchReverse::load(SimpleFile *file) {
file->readNumber();
CMusicSwitch::load(file);
}
+
bool CMusicSwitchReverse::MusicSettingChangedMsg(CMusicSettingChangedMsg *msg) {
- if (_fieldEC) {
+ if (_enabled) {
if (++_controlVal > _controlMax)
_controlVal = 0;
More information about the Scummvm-git-logs
mailing list