diff options
author | Paul Gilbert | 2016-06-29 19:53:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:25:58 -0400 |
commit | 5ccc0a66da38d23520234e7060efaf966d3345b9 (patch) | |
tree | 9cff2311be2b8e9cd1f62e76ae74e15f3d4c18fc /engines/titanic/game/maitred | |
parent | a82bcd3ce7ef0ae604af45fdb56668fca47e7137 (diff) | |
download | scummvm-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/maitred')
8 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/game/maitred/maitred_arm_holder.cpp b/engines/titanic/game/maitred/maitred_arm_holder.cpp index b6fc494441..4d35277a33 100644 --- a/engines/titanic/game/maitred/maitred_arm_holder.cpp +++ b/engines/titanic/game/maitred/maitred_arm_holder.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CMaitreDArmHolder::save(SimpleFile *file, int indent) const { +void CMaitreDArmHolder::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CDropTarget::save(file, indent); } diff --git a/engines/titanic/game/maitred/maitred_arm_holder.h b/engines/titanic/game/maitred/maitred_arm_holder.h index e329157837..c823bd94cf 100644 --- a/engines/titanic/game/maitred/maitred_arm_holder.h +++ b/engines/titanic/game/maitred/maitred_arm_holder.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/maitred/maitred_body.cpp b/engines/titanic/game/maitred/maitred_body.cpp index 4cdd5899de..6b495e5a1c 100644 --- a/engines/titanic/game/maitred/maitred_body.cpp +++ b/engines/titanic/game/maitred/maitred_body.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CMaitreDLegs::save(SimpleFile *file, int indent) const { +void CMaitreDLegs::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_fieldC8, indent); CMaitreDProdReceptor::save(file, indent); diff --git a/engines/titanic/game/maitred/maitred_body.h b/engines/titanic/game/maitred/maitred_body.h index 9dcc2af4ea..52e2ac8fe6 100644 --- a/engines/titanic/game/maitred/maitred_body.h +++ b/engines/titanic/game/maitred/maitred_body.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/maitred/maitred_legs.cpp b/engines/titanic/game/maitred/maitred_legs.cpp index ce7054e057..5071805101 100644 --- a/engines/titanic/game/maitred/maitred_legs.cpp +++ b/engines/titanic/game/maitred/maitred_legs.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CMaitreDBody::save(SimpleFile *file, int indent) const { +void CMaitreDBody::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_fieldC8, indent); CMaitreDProdReceptor::save(file, indent); diff --git a/engines/titanic/game/maitred/maitred_legs.h b/engines/titanic/game/maitred/maitred_legs.h index 0dc1b34143..5ee9482d18 100644 --- a/engines/titanic/game/maitred/maitred_legs.h +++ b/engines/titanic/game/maitred/maitred_legs.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/maitred/maitred_prod_receptor.cpp b/engines/titanic/game/maitred/maitred_prod_receptor.cpp index 6e6143c510..4823f143b0 100644 --- a/engines/titanic/game/maitred/maitred_prod_receptor.cpp +++ b/engines/titanic/game/maitred/maitred_prod_receptor.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CMaitreDProdReceptor::save(SimpleFile *file, int indent) const { +void CMaitreDProdReceptor::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_fieldBC, indent); file->writeNumberLine(_fieldC0, indent); diff --git a/engines/titanic/game/maitred/maitred_prod_receptor.h b/engines/titanic/game/maitred/maitred_prod_receptor.h index b82c95b9b5..5138d46e6e 100644 --- a/engines/titanic/game/maitred/maitred_prod_receptor.h +++ b/engines/titanic/game/maitred/maitred_prod_receptor.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 |