Bugfix: the framerate was always set to 30. Setting it via the config file now actually works.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1282 4a71c877-e1ca-e34f-864e-861f7616d084
master
Gerard Krol 2007-03-26 13:17:52 +00:00
parent a4c540f24a
commit 8479fe1dad
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ void SDL_initFramerate(FPSmanager * manager)
manager->framecount = 0;
manager->rate = FPS_DEFAULT;
manager->rateticks = (1000.0 / (float) FPS_DEFAULT);
manager->lastticks = SDL_GetTicks();
manager->lastticks = 0;
}
/*

View File

@ -164,6 +164,7 @@ void frameSetCursorFromRes(SWORD resID)
void setFramerateLimit(Uint32 fpsLimit)
{
SDL_initFramerate( &wzFPSmanager );
SDL_setFramerate( &wzFPSmanager, fpsLimit );
}
@ -307,8 +308,6 @@ BOOL frameInitialise(
/* Initialise the frame rate stuff */
InitFrameStuff();
SDL_initFramerate( &wzFPSmanager );
// Initialise the resource stuff
if (!resInitialise())
{