aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/util.cpp')
-rw-r--r--engines/wage/util.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/wage/util.cpp b/engines/wage/util.cpp
index 1b3dfc9452..6cab7f8ee6 100644
--- a/engines/wage/util.cpp
+++ b/engines/wage/util.cpp
@@ -8,12 +8,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -81,6 +81,8 @@ Common::Rect *readRect(Common::SeekableReadStream *in) {
y2 = in->readUint16BE() + 4;
x2 = in->readUint16BE() + 4;
+ debug(9, "readRect: %d, %d, %d, %d", x1, y1, x2, y2);
+
return new Common::Rect(x1, y1, x2, y2);
}
@@ -120,4 +122,17 @@ const char *getGenderSpecificPronoun(int gender, bool capitalize) {
return capitalize ? "It" : "it";
}
+bool isStorageScene(const Common::String &name) {
+ if (name.equalsIgnoreCase(STORAGESCENE))
+ return true;
+
+ if (name.equalsIgnoreCase("STROAGE@")) // Jumble
+ return true;
+
+ if (name.equalsIgnoreCase("STORAGE@@")) // Jumble
+ return true;
+
+ return false;
+}
+
} // End of namespace Wage