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-861f7616d084master
parent
a4c540f24a
commit
8479fe1dad
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue