aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2009-10-08 19:41:38 +0000
committerMax Horn2009-10-08 19:41:38 +0000
commit42120ed626c0d18bc1e1738678dbd1fa96481f04 (patch)
tree90715ea5e5bb3f3f24547f484b2355194b9cd93c /engines/sword1
parentf5ccaf7e29183d6e51456d5994eccfd35ff9a117 (diff)
downloadscummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.tar.gz
scummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.tar.bz2
scummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.zip
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
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/control.cpp6
1 files changed, 2 insertions, 4 deletions
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 <time.h> // 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);