From 42120ed626c0d18bc1e1738678dbd1fa96481f04 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 Oct 2009 19:41:38 +0000 Subject: Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though svn-id: r44793 --- engines/sword1/control.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/sword1') diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index 5a3c614df4..31db54c4c8 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -23,8 +23,6 @@ * */ -#include // for extended infos - #include "common/file.h" #include "common/util.h" #include "common/savefile.h" @@ -1112,7 +1110,7 @@ void Control::saveGameToFile(uint8 slot) { Graphics::saveThumbnail(*outf); // Date / time - tm curTime; + TimeDate curTime; _system->getTimeAndDate(curTime); uint32 saveDate = (curTime.tm_mday & 0xFF) << 24 | ((curTime.tm_mon + 1) & 0xFF) << 16 | ((curTime.tm_year + 1900) & 0xFFFF); @@ -1278,7 +1276,7 @@ bool Control::convertSaveGame(uint8 slot, char* desc) { newSave->writeByte(SAVEGAME_VERSION); // Date / time - tm curTime; + TimeDate curTime; _system->getTimeAndDate(curTime); uint32 saveDate = (curTime.tm_mday & 0xFF) << 24 | ((curTime.tm_mon + 1) & 0xFF) << 16 | ((curTime.tm_year + 1900) & 0xFFFF); -- cgit v1.2.3