ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/tod.h
(Generate patch)

Comparing deliantra/server/include/tod.h (file contents):
Revision 1.8 by root, Sat Mar 17 22:11:23 2007 UTC vs.
Revision 1.10 by root, Wed Apr 25 18:47:50 2007 UTC

23 * The authors can be reached via e-mail at crossfire@schmorp.de 23 * The authors can be reached via e-mail at crossfire@schmorp.de
24 */ 24 */
25 25
26#ifndef TOD_H_ 26#ifndef TOD_H_
27#define TOD_H_ 27#define TOD_H_
28
29#define TICK (MAX_TIME * 1e-6)
30
31#define TICK2TIME(tick) (tstamp (tick) * TICK)
32#define TIME2TICK(time) tstamp ((time) / TICK)
28 33
29#define RUNTIME_PER_HOUR 180. 34#define RUNTIME_PER_HOUR 180.
30#define TICKS_PER_HOUR int (RUNTIME_PER_HOUR / MAX_TIME * 1e6) 35#define TICKS_PER_HOUR int (RUNTIME_PER_HOUR / MAX_TIME * 1e6)
31 36
32/* game time */ 37/* game time */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines