From 69303997aee1518b26eac27c60454bfb0633dc94 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Mon, 8 Jul 2019 01:24:12 +0530 Subject: HDB: Unstub double reads and writes --- engines/hdb/gfx.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 84d3d2949c..191da100b9 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -151,11 +151,11 @@ void Gfx::save(Common::OutSaveFile *out) { out->writeByte(_snowInfo.active); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Save Double Value"); + out->writeDoubleLE(_snowInfo.x[i]); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Save Double Value"); + out->writeDoubleLE(_snowInfo.y[i]); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Save Double Value"); + out->writeDoubleLE(_snowInfo.yv[i]); for (i = 0; i < MAX_SNOW; i++) out->writeSint32LE(_snowInfo.xvindex[i]); } @@ -175,11 +175,11 @@ void Gfx::loadSaveFile(Common::InSaveFile *in) { _snowInfo.active = in->readByte(); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Load Double Value"); + _snowInfo.x[i] = in->readDoubleLE(); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Load Double Value"); + _snowInfo.y[i] = in->readDoubleLE(); for (i = 0; i < MAX_SNOW; i++) - warning("STUB: Load Double Value"); + _snowInfo.yv[i] = in->readDoubleLE(); for (i = 0; i < MAX_SNOW; i++) _snowInfo.xvindex[i] = in->readSint32LE(); -- cgit v1.2.3