aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_game.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 20:54:41 +0200
committerEinar Johan Trøan Sømåen2013-04-17 21:21:17 +0200
commit5f5b415289d80e6e0dacfc15000bb6ae3e45d824 (patch)
tree40b63f4e2887889c3fd4ca6b91f2de3e608acffe /engines/wintermute/ad/ad_game.cpp
parent7f4b95b3f8bbe7aa2be842462e57868ec17fd19e (diff)
downloadscummvm-rg350-5f5b415289d80e6e0dacfc15000bb6ae3e45d824.tar.gz
scummvm-rg350-5f5b415289d80e6e0dacfc15000bb6ae3e45d824.tar.bz2
scummvm-rg350-5f5b415289d80e6e0dacfc15000bb6ae3e45d824.zip
WINTERMUTE: Increase const-usage.
Diffstat (limited to 'engines/wintermute/ad/ad_game.cpp')
-rw-r--r--engines/wintermute/ad/ad_game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp
index 3730b23fc2..f0d2fcf5c8 100644
--- a/engines/wintermute/ad/ad_game.cpp
+++ b/engines/wintermute/ad/ad_game.cpp
@@ -1497,7 +1497,7 @@ bool AdGame::scheduleChangeScene(const char *filename, bool fadeIn) {
//////////////////////////////////////////////////////////////////////////
-bool AdGame::getVersion(byte *verMajor, byte *verMinor, byte *extMajor, byte *extMinor) {
+bool AdGame::getVersion(byte *verMajor, byte *verMinor, byte *extMajor, byte *extMinor) const {
BaseGame::getVersion(verMajor, verMinor, nullptr, nullptr);
if (extMajor) {
@@ -1766,7 +1766,7 @@ bool AdGame::addBranchResponse(int id) {
//////////////////////////////////////////////////////////////////////////
-bool AdGame::branchResponseUsed(int id) {
+bool AdGame::branchResponseUsed(int id) const {
char *context = _dlgPendingBranches.size() > 0 ? _dlgPendingBranches[_dlgPendingBranches.size() - 1] : nullptr;
for (uint32 i = 0; i < _responsesBranch.size(); i++) {
if (_responsesBranch[i]->_id == id) {
@@ -1793,7 +1793,7 @@ bool AdGame::addGameResponse(int id) {
//////////////////////////////////////////////////////////////////////////
-bool AdGame::gameResponseUsed(int id) {
+bool AdGame::gameResponseUsed(int id) const {
char *context = _dlgPendingBranches.size() > 0 ? _dlgPendingBranches[_dlgPendingBranches.size() - 1] : nullptr;
for (uint32 i = 0; i < _responsesGame.size(); i++) {
AdResponseContext *respContext = _responsesGame[i];
@@ -1958,7 +1958,7 @@ bool AdGame::isItemTaken(char *itemName) {
}
//////////////////////////////////////////////////////////////////////////
-AdItem *AdGame::getItemByName(const char *name) {
+AdItem *AdGame::getItemByName(const char *name) const {
for (uint32 i = 0; i < _items.size(); i++) {
if (scumm_stricmp(_items[i]->getName(), name) == 0) {
return _items[i];