From 73b7d20e1d4318f4218e503dcfd583d693f4d104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 16 May 2010 10:25:50 +0200 Subject: [PATCH] A FIXME for the time functions. --- dfhack/modules/World.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dfhack/modules/World.cpp b/dfhack/modules/World.cpp index fe997da2a..fecb99712 100644 --- a/dfhack/modules/World.cpp +++ b/dfhack/modules/World.cpp @@ -22,6 +22,18 @@ must not be misrepresented as being the original software. distribution. */ +/* +FIXME: Japa said that he had to do this with the time stuff he got from here + Investigate. + + currentYear = Wold->ReadCurrentYear(); + currentTick = Wold->ReadCurrentTick(); + currentMonth = (currentTick+9)/33600; + currentDay = ((currentTick+9)%33600)/1200; + currentHour = ((currentTick+9)-(((currentMonth*28)+currentDay)*1200))/50; + currentTickRel = (currentTick+9)-(((((currentMonth*28)+currentDay)*24)+currentHour)*50); + */ + #include "DFCommonInternal.h" #include "../private/APIPrivate.h" #include "modules/World.h"