From 3231b8c3883968aa5f1cd45bc79f3bea50130a94 Mon Sep 17 00:00:00 2001
From: johns <>
Date: Wed, 27 Mar 2002 22:26:59 +0000
Subject: [PATCH] Added GameCycle and NextFrameTicks, renamed InitVideoCursors.

---
 src/stratagus/stratagus.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/stratagus/stratagus.cpp b/src/stratagus/stratagus.cpp
index 51b4327e1..808b528b1 100644
--- a/src/stratagus/stratagus.cpp
+++ b/src/stratagus/stratagus.cpp
@@ -147,6 +147,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #ifdef USE_BEOS
 #include <fcntl.h>
@@ -241,12 +242,15 @@ global int SpeedResearch=SPEED_RESEARCH;/// speed factor for researching
 global int VideoWidth;			/// window width in pixels
 global int VideoHeight;			/// window height in pixels
 
+global unsigned long NextFrameTicks;	/// Ticks of begin of the next frame
 global int FrameCounter;		/// current frame number
 global int SlowFrameCounter;		/// profile, frames out of sync
 
 // FIXME: not the correct place
 global enum MustRedraw_e MustRedraw=RedrawEverything;	/// redraw flags
 
+global unsigned long GameCycle;		/// Game simulation cycle counter
+
 /*----------------------------------------------------------------------------
 --	Random
 ----------------------------------------------------------------------------*/
@@ -427,7 +431,7 @@ local void PreMenuSetup(void)
     VideoCreatePalette(GlobalPalette);
     LoadFonts();
 
-    InitCursors();
+    InitVideoCursors();
 
     // All pre-start menues are orcish - may need to be switched later..
     SetDefaultTextColors(FontYellow,FontWhite);