diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-08-07 23:13:05 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-08-07 23:13:05 +0000 |
commit | 722aa81936c786ad072cec2d189c551a6e246986 (patch) | |
tree | 737c1ee10adc12f78da6cbf80a2d1890932609d9 /src/game.c | |
parent | 71566053936013a578e8882d01e6ecb4c29717fb (diff) |
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
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 ) { |