aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/transport
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-29 19:53:16 -0400
committerPaul Gilbert2016-07-15 19:25:58 -0400
commit5ccc0a66da38d23520234e7060efaf966d3345b9 (patch)
tree9cff2311be2b8e9cd1f62e76ae74e15f3d4c18fc /engines/titanic/game/transport
parenta82bcd3ce7ef0ae604af45fdb56668fca47e7137 (diff)
downloadscummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.gz
scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.bz2
scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.zip
TITANIC: Removed const modifier from all saveable objects
Turns out that CGameObject::save regenerates the _movieRangeInfo list. So the const suffix can no longer be used for the entire hierarchy
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r--engines/titanic/game/transport/exit_pellerator.h2
-rw-r--r--engines/titanic/game/transport/gondolier.cpp2
-rw-r--r--engines/titanic/game/transport/gondolier.h2
-rw-r--r--engines/titanic/game/transport/lift.cpp2
-rw-r--r--engines/titanic/game/transport/lift.h2
-rw-r--r--engines/titanic/game/transport/lift_indicator.cpp2
-rw-r--r--engines/titanic/game/transport/lift_indicator.h2
-rw-r--r--engines/titanic/game/transport/pellerator.cpp2
-rw-r--r--engines/titanic/game/transport/pellerator.h2
-rw-r--r--engines/titanic/game/transport/service_elevator.cpp2
-rw-r--r--engines/titanic/game/transport/service_elevator.h2
-rw-r--r--engines/titanic/game/transport/transport.cpp2
-rw-r--r--engines/titanic/game/transport/transport.h2
13 files changed, 13 insertions, 13 deletions
diff --git a/engines/titanic/game/transport/exit_pellerator.h b/engines/titanic/game/transport/exit_pellerator.h
index e72cbb4b9d..e55a8fbf04 100644
--- a/engines/titanic/game/transport/exit_pellerator.h
+++ b/engines/titanic/game/transport/exit_pellerator.h
@@ -37,7 +37,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/gondolier.cpp b/engines/titanic/game/transport/gondolier.cpp
index f67a3b68d9..f731e45bde 100644
--- a/engines/titanic/game/transport/gondolier.cpp
+++ b/engines/titanic/game/transport/gondolier.cpp
@@ -24,7 +24,7 @@
namespace Titanic {
-void CGondolier::save(SimpleFile *file, int indent) const {
+void CGondolier::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
CTransport::save(file, indent);
}
diff --git a/engines/titanic/game/transport/gondolier.h b/engines/titanic/game/transport/gondolier.h
index bdfb3e7156..4f4c57081b 100644
--- a/engines/titanic/game/transport/gondolier.h
+++ b/engines/titanic/game/transport/gondolier.h
@@ -34,7 +34,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/lift.cpp b/engines/titanic/game/transport/lift.cpp
index e978762528..72f832bf76 100644
--- a/engines/titanic/game/transport/lift.cpp
+++ b/engines/titanic/game/transport/lift.cpp
@@ -35,7 +35,7 @@ int CLift::_v4;
int CLift::_v5;
int CLift::_v6;
-void CLift::save(SimpleFile *file, int indent) const {
+void CLift::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
file->writeNumberLine(_v1, indent);
file->writeNumberLine(_v2, indent);
diff --git a/engines/titanic/game/transport/lift.h b/engines/titanic/game/transport/lift.h
index 161061c042..4b39d34008 100644
--- a/engines/titanic/game/transport/lift.h
+++ b/engines/titanic/game/transport/lift.h
@@ -47,7 +47,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/lift_indicator.cpp b/engines/titanic/game/transport/lift_indicator.cpp
index eb7f6bfa1c..582de8ad3b 100644
--- a/engines/titanic/game/transport/lift_indicator.cpp
+++ b/engines/titanic/game/transport/lift_indicator.cpp
@@ -32,7 +32,7 @@ CLiftindicator::CLiftindicator() : CLift(),
_fieldFC(0), _field108(0), _field10C(0) {
}
-void CLiftindicator::save(SimpleFile *file, int indent) const {
+void CLiftindicator::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
file->writeNumberLine(_fieldFC, indent);
file->writePoint(_pos2, indent);
diff --git a/engines/titanic/game/transport/lift_indicator.h b/engines/titanic/game/transport/lift_indicator.h
index c73d1f46d4..2b08da5975 100644
--- a/engines/titanic/game/transport/lift_indicator.h
+++ b/engines/titanic/game/transport/lift_indicator.h
@@ -43,7 +43,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index ed82aa9c3d..e789c20a3d 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -31,7 +31,7 @@ END_MESSAGE_MAP()
int CPellerator::_v1;
int CPellerator::_v2;
-void CPellerator::save(SimpleFile *file, int indent) const {
+void CPellerator::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
file->writeNumberLine(_v1, indent);
file->writeNumberLine(_v2, indent);
diff --git a/engines/titanic/game/transport/pellerator.h b/engines/titanic/game/transport/pellerator.h
index 0539b5ceac..ac1486de3a 100644
--- a/engines/titanic/game/transport/pellerator.h
+++ b/engines/titanic/game/transport/pellerator.h
@@ -40,7 +40,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/service_elevator.cpp b/engines/titanic/game/transport/service_elevator.cpp
index ba68bc8c2b..1ea8d14e36 100644
--- a/engines/titanic/game/transport/service_elevator.cpp
+++ b/engines/titanic/game/transport/service_elevator.cpp
@@ -32,7 +32,7 @@ CServiceElevator::CServiceElevator() : CTransport(),
_fieldF8(0), _fieldFC(0), _field100(0), _field104(0) {
}
-void CServiceElevator::save(SimpleFile *file, int indent) const {
+void CServiceElevator::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
file->writeNumberLine(_v1, indent);
file->writeNumberLine(_v2, indent);
diff --git a/engines/titanic/game/transport/service_elevator.h b/engines/titanic/game/transport/service_elevator.h
index 9edc1f9100..472f4580ad 100644
--- a/engines/titanic/game/transport/service_elevator.h
+++ b/engines/titanic/game/transport/service_elevator.h
@@ -44,7 +44,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file
diff --git a/engines/titanic/game/transport/transport.cpp b/engines/titanic/game/transport/transport.cpp
index e00375975b..f9598c7b7b 100644
--- a/engines/titanic/game/transport/transport.cpp
+++ b/engines/titanic/game/transport/transport.cpp
@@ -29,7 +29,7 @@ EMPTY_MESSAGE_MAP(CTransport, CMobile)
CTransport::CTransport() : CMobile(), _string1("*.*.*") {
}
-void CTransport::save(SimpleFile *file, int indent) const {
+void CTransport::save(SimpleFile *file, int indent) {
file->writeNumberLine(1, indent);
file->writeQuotedLine(_string1, indent);
file->writeQuotedLine(_string2, indent);
diff --git a/engines/titanic/game/transport/transport.h b/engines/titanic/game/transport/transport.h
index b7540add0e..66906888a0 100644
--- a/engines/titanic/game/transport/transport.h
+++ b/engines/titanic/game/transport/transport.h
@@ -39,7 +39,7 @@ public:
/**
* Save the data for the class to file
*/
- virtual void save(SimpleFile *file, int indent) const;
+ virtual void save(SimpleFile *file, int indent);
/**
* Load the data for the class from file