A FIXME for the time functions.

develop
Petr Mrázek 2010-05-16 10:25:50 +02:00
parent dcd2076459
commit 73b7d20e1d
1 changed files with 12 additions and 0 deletions

@ -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"