diff options
author | Strangerke | 2013-10-27 12:56:19 +0100 |
---|---|---|
committer | Strangerke | 2013-10-27 13:15:30 +0100 |
commit | d596f4670b36c2bab8eeb4f051b5ace7ee2d56cd (patch) | |
tree | fdfa14e11b348daa3b31ce95e701294ccf1a6fdf /engines | |
parent | 56cf25f9d641f80241619d9fb030d1a5154c903f (diff) | |
download | scummvm-rg350-d596f4670b36c2bab8eeb4f051b5ace7ee2d56cd.tar.gz scummvm-rg350-d596f4670b36c2bab8eeb4f051b5ace7ee2d56cd.tar.bz2 scummvm-rg350-d596f4670b36c2bab8eeb4f051b5ace7ee2d56cd.zip |
TSAGE: Fix CID 1002385, 1002386, 1002388. Move some code from header to source file
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/ringworld/ringworld_scenes6.cpp | 6 | ||||
-rw-r--r-- | engines/tsage/ringworld/ringworld_scenes6.h | 7 | ||||
-rw-r--r-- | engines/tsage/ringworld/ringworld_scenes8.cpp | 8 | ||||
-rw-r--r-- | engines/tsage/ringworld/ringworld_scenes8.h | 2 |
4 files changed, 18 insertions, 5 deletions
diff --git a/engines/tsage/ringworld/ringworld_scenes6.cpp b/engines/tsage/ringworld/ringworld_scenes6.cpp index 30a91b57aa..9c18830a30 100644 --- a/engines/tsage/ringworld/ringworld_scenes6.cpp +++ b/engines/tsage/ringworld/ringworld_scenes6.cpp @@ -2033,6 +2033,12 @@ void Scene5300::Hotspot8::doAction(int action) { Scene5300::Scene5300() : _hotspot3(0, CURSOR_LOOK, 5300, 3, CURSOR_USE, 5300, 16, LIST_END) { + _field1B0A = 1; +} + +void Scene5300::synchronize(Serializer &s) { + Scene::synchronize(s); + s.syncAsSint16LE(_field1B0A); } void Scene5300::postInit(SceneObjectList *OwnerList) { diff --git a/engines/tsage/ringworld/ringworld_scenes6.h b/engines/tsage/ringworld/ringworld_scenes6.h index bf353de415..8b08f3bf01 100644 --- a/engines/tsage/ringworld/ringworld_scenes6.h +++ b/engines/tsage/ringworld/ringworld_scenes6.h @@ -318,15 +318,14 @@ public: Hotspot6 _hotspot6; Hotspot7 _hotspot7; Hotspot8 _hotspot8; + + // Useless variable, but removing it would break the savegames. int _field1B0A; Scene5300(); virtual void postInit(SceneObjectList *OwnerList = NULL); virtual void signal(); - virtual void synchronize(Serializer &s) { - Scene::synchronize(s); - s.syncAsSint16LE(_field1B0A); - } + virtual void synchronize(Serializer &s); }; } // End of namespace Ringworld diff --git a/engines/tsage/ringworld/ringworld_scenes8.cpp b/engines/tsage/ringworld/ringworld_scenes8.cpp index 9cb85a6930..f9156479e5 100644 --- a/engines/tsage/ringworld/ringworld_scenes8.cpp +++ b/engines/tsage/ringworld/ringworld_scenes8.cpp @@ -30,6 +30,10 @@ namespace TsAGE { namespace Ringworld { +NamedHotspotMult::NamedHotspotMult() : SceneHotspot() { + _useLineNum = _lookLineNum = 0; +} + void NamedHotspotMult::synchronize(Serializer &s) { SceneHotspot::synchronize(s); s.syncAsSint16LE(_useLineNum); @@ -2533,6 +2537,10 @@ Scene7700::Scene7700() { _object5._state = 0; _object6._state = 0; _prof._state = 0; + + _seatCountLeft1 = 0; + _seatCountLeft2 = 0; + _seatCountRight = 0; } void Scene7700::synchronize(Serializer &s) { diff --git a/engines/tsage/ringworld/ringworld_scenes8.h b/engines/tsage/ringworld/ringworld_scenes8.h index b24f220f8c..fa441f87da 100644 --- a/engines/tsage/ringworld/ringworld_scenes8.h +++ b/engines/tsage/ringworld/ringworld_scenes8.h @@ -40,7 +40,7 @@ using namespace TsAGE; class NamedHotspotMult : public SceneHotspot { public: int _useLineNum, _lookLineNum; - NamedHotspotMult() : SceneHotspot() {} + NamedHotspotMult(); virtual Common::String getClassName() { return "NamedHotspotMult"; } virtual void synchronize(Serializer &s); |