From 722aa81936c786ad072cec2d189c551a6e246986 Mon Sep 17 00:00:00 2001 From: taw27 Date: Thu, 7 Aug 2008 23:13:05 +0000 Subject: Sleep for the right amount of time git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@231 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index e8d69b9..a5727be 100644 --- a/src/game.c +++ b/src/game.c @@ -291,12 +291,14 @@ Game *game_new(int width, int height, GameOptions gameopts) { g->frames = 0; g->t_fps = SDL_GetTicks(); g->fps = 0; + g->query_this_frame = 1; + g->time_to_render = 0; g->fuel = 1.0; g->radiation = 0.1; g->platform_rel_x = 0.0; g->platform_rel_y = 0.0; g->time_of_landing_event = -1500.0; /* Force the platform recharge ripple to be 'bright' */ - + /* Renderer setup */ g->render = render_setup(width, height, gameopts.disable_vbos, gameopts.disable_fbos, gameopts.disable_shaders); if ( g->render == NULL ) { -- cgit v1.2.3