diff options
author | Marisa-Chan | 2014-03-05 16:21:03 +0700 |
---|---|---|
committer | Marisa-Chan | 2014-03-05 16:21:03 +0700 |
commit | 2a4e9a63588bc462c2a71195bb7597fe81ab0617 (patch) | |
tree | e63b6c2fdf595fd615778ac741e0c40aa912454b /engines/zvision/timer_node.cpp | |
parent | eb9061e580ce7c055c4f7cafe9bd81823367f39d (diff) | |
download | scummvm-rg350-2a4e9a63588bc462c2a71195bb7597fe81ab0617.tar.gz scummvm-rg350-2a4e9a63588bc462c2a71195bb7597fe81ab0617.tar.bz2 scummvm-rg350-2a4e9a63588bc462c2a71195bb7597fe81ab0617.zip |
ZVISION: Refactor of save functions
Diffstat (limited to 'engines/zvision/timer_node.cpp')
-rw-r--r-- | engines/zvision/timer_node.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/timer_node.cpp b/engines/zvision/timer_node.cpp index f8da0bcf37..0d7f9b1114 100644 --- a/engines/zvision/timer_node.cpp +++ b/engines/zvision/timer_node.cpp @@ -67,8 +67,10 @@ bool TimerNode::stop() { } void TimerNode::serialize(Common::WriteStream *stream) { + stream->writeUint32BE(MKTAG('T', 'I', 'M', 'R')); + stream->writeUint32LE(8); // size stream->writeUint32LE(_key); - stream->writeUint32LE(_timeLeft); + stream->writeUint32LE(_timeLeft / (_engine->getGameId() == GID_NEMESIS ? 1000 : 100)); } void TimerNode::deserialize(Common::SeekableReadStream *stream) { |