diff options
author | Paul Gilbert | 2016-03-31 22:31:13 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-31 22:31:13 -0400 |
commit | 5923ee5001af91d1ca9294b1fead56ec04ece7df (patch) | |
tree | 1b8de45ef0c15ed0e12019f4add3e686a530ef74 /engines/titanic/pet_control/pet_element.cpp | |
parent | 7d819f71f7d9fdd794b12ac55bd2177f12069c1b (diff) | |
download | scummvm-rg350-5923ee5001af91d1ca9294b1fead56ec04ece7df.tar.gz scummvm-rg350-5923ee5001af91d1ca9294b1fead56ec04ece7df.tar.bz2 scummvm-rg350-5923ee5001af91d1ca9294b1fead56ec04ece7df.zip |
TITANIC: Implement CPetFrame::setArea
Diffstat (limited to 'engines/titanic/pet_control/pet_element.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_element.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_element.cpp b/engines/titanic/pet_control/pet_element.cpp index 39d8fea7d9..a4c5b271a0 100644 --- a/engines/titanic/pet_control/pet_element.cpp +++ b/engines/titanic/pet_control/pet_element.cpp @@ -26,7 +26,7 @@ namespace Titanic { -CPetElement::CPetElement() : _mode(MODE_0) {} +CPetElement::CPetElement() : _mode(MODE_UNSELECTED) {} void CPetElement::getBounds(Rect *rect) { if (rect) @@ -36,14 +36,14 @@ void CPetElement::getBounds(Rect *rect) { bool CPetElement::proc6(const Common::Point &pt) { bool result = _bounds.contains(pt); if (result) - setMode(MODE_1); + setMode(MODE_SELECTED); return result; } bool CPetElement::proc7(const Common::Point &pt) { bool result = _bounds.contains(pt); if (result) - setMode(MODE_0); + setMode(MODE_UNSELECTED); return result; } @@ -93,7 +93,7 @@ int CPetElement::proc15() { } void CPetElement::setMode(PetElementMode newMode) { - if (newMode >= MODE_0 && newMode <= MODE_2) + if (newMode >= MODE_UNSELECTED && newMode <= MODE_2) changeMode(newMode); } |