diff options
author | Paul Gilbert | 2016-03-02 18:29:09 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-03-02 18:29:09 -0500 |
commit | 96825e282392d24e683c0e9cb7b7a1ac9aa4f467 (patch) | |
tree | 0e7047797ad4c644cfde4d09abb30dfc498094ac /engines/titanic/game/bottom_of_well_monitor.cpp | |
parent | 700b77e1eaea257f322efdb2336b8a46dd3b91ec (diff) | |
download | scummvm-rg350-96825e282392d24e683c0e9cb7b7a1ac9aa4f467.tar.gz scummvm-rg350-96825e282392d24e683c0e9cb7b7a1ac9aa4f467.tar.bz2 scummvm-rg350-96825e282392d24e683c0e9cb7b7a1ac9aa4f467.zip |
TITANIC: More saveable classes implemented
Diffstat (limited to 'engines/titanic/game/bottom_of_well_monitor.cpp')
-rw-r--r-- | engines/titanic/game/bottom_of_well_monitor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/game/bottom_of_well_monitor.cpp b/engines/titanic/game/bottom_of_well_monitor.cpp index daca5dbb5f..b48b5ad291 100644 --- a/engines/titanic/game/bottom_of_well_monitor.cpp +++ b/engines/titanic/game/bottom_of_well_monitor.cpp @@ -24,14 +24,21 @@ namespace Titanic { +int CBottomOfWellMonitor::_v1; +int CBottomOfWellMonitor::_v2; + void CBottomOfWellMonitor::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); + file->writeNumberLine(_v1, indent); + file->writeNumberLine(_v2, indent); file->writeNumberLine(_value, indent); CGameObject::save(file, indent); } void CBottomOfWellMonitor::load(SimpleFile *file) { file->readNumber(); + _v1 = file->readNumber(); + _v2 = file->readNumber(); _value = file->readNumber(); CGameObject::load(file); } |