remove setscriptfps not used anymore

This commit is contained in:
Stradex 2020-06-12 02:21:17 -03:00
parent 9ab12b73af
commit 8738450bb8
4 changed files with 2 additions and 79 deletions

View file

@ -1301,8 +1301,6 @@ void idGameLocal::MapPopulate( void ) {
// before the physics are run so entities can bind correctly
Printf( "==== Processing events ====\n" );
idEvent::ServiceEvents();
SetScriptFPS(static_cast<const float>(this->gameFps));
}
/*
@ -1365,8 +1363,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
gameRenderWorld = renderWorld;
gameSoundWorld = soundWorld;
SetScriptFPS(static_cast<const float>(this->gameFps));
idRestoreGame savegame( saveGameFile );
savegame.ReadBuildNumber();
@ -4998,37 +4994,4 @@ void idGameLocal::SwitchTeam( int clientNum, int team ) {
idGameLocal::GetMapLoadingGUI
===============
*/
void idGameLocal::GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] ) { }
/*
===================
idGameLocal::SetScriptFPS
===================
*/
void idGameLocal::SetScriptFPS(const float tCom_gameHz)
{
idVarDef* fpsDef = program.GetDef(&type_float, "GAME_FPS", &def_namespace);
if (fpsDef != NULL) {
eval_t fpsValue;
fpsValue._float = tCom_gameHz;
fpsDef->SetValue(fpsValue, false);
common->Printf("GAME_FPS: %f\n", tCom_gameHz);
}
else {
common->Printf("Unable to find GAME_FPS def\n");
}
float frameRate = 1.0 / tCom_gameHz;
idVarDef* frameRateDef = program.GetDef(&type_float, "GAME_FRAMETIME", &def_namespace);
if (frameRateDef != NULL) {
eval_t frameRateValue;
frameRateValue._float = frameRate;
frameRateDef->SetValue(frameRateValue, false);
common->Printf("GAME_FRAMETIME to: %f\n", frameRate);
}
else {
common->Printf("Unable to find GAME_FRAMETIME def\n");
}
}
void idGameLocal::GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] ) { }

View file

@ -588,7 +588,6 @@ private:
void RunDebugInfo( void );
void InitScriptForMap( void );
void SetScriptFPS(const float tCom_gameHz);
void InitConsoleCommands( void );
void ShutdownConsoleCommands( void );

View file

@ -1179,8 +1179,6 @@ void idGameLocal::MapPopulate( void ) {
// before the physics are run so entities can bind correctly
Printf( "==== Processing events ====\n" );
idEvent::ServiceEvents();
SetScriptFPS(static_cast<const float>(this->gameFps));
}
/*
@ -1243,8 +1241,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
gameRenderWorld = renderWorld;
gameSoundWorld = soundWorld;
SetScriptFPS(static_cast<const float>(this->gameFps));
idRestoreGame savegame( saveGameFile );
savegame.ReadBuildNumber();
@ -4396,38 +4392,4 @@ void idGameLocal::SwitchTeam( int clientNum, int team ) {
idGameLocal::GetMapLoadingGUI
===============
*/
void idGameLocal::GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] ) { }
/*
===================
idGameLocal::SetScriptFPS
===================
*/
void idGameLocal::SetScriptFPS(const float tCom_gameHz)
{
idVarDef* fpsDef = program.GetDef(&type_float, "GAME_FPS", &def_namespace);
if (fpsDef != NULL) {
eval_t fpsValue;
fpsValue._float = tCom_gameHz;
fpsDef->SetValue(fpsValue, false);
common->Printf("GAME_FPS: %f\n", tCom_gameHz);
}
else {
common->Printf("Unable to find GAME_FPS def\n");
}
float frameRate = 1.0 / tCom_gameHz;
idVarDef* frameRateDef = program.GetDef(&type_float, "GAME_FRAMETIME", &def_namespace);
if (frameRateDef != NULL) {
eval_t frameRateValue;
frameRateValue._float = frameRate;
frameRateDef->SetValue(frameRateValue, false);
common->Printf("GAME_FRAMETIME to: %f\n", frameRate);
}
else {
common->Printf("Unable to find GAME_FRAMETIME def\n");
}
}
void idGameLocal::GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] ) { }

View file

@ -519,7 +519,6 @@ private:
void RunDebugInfo( void );
void InitScriptForMap( void );
void SetScriptFPS(const float tCom_gameHz);
void InitConsoleCommands( void );
void ShutdownConsoleCommands( void );