diff --git a/neo/d3xp/Game_local.cpp b/neo/d3xp/Game_local.cpp index 73148279..9c492d25 100644 --- a/neo/d3xp/Game_local.cpp +++ b/neo/d3xp/Game_local.cpp @@ -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(this->gameFps)); } /* @@ -1365,8 +1363,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo gameRenderWorld = renderWorld; gameSoundWorld = soundWorld; - SetScriptFPS(static_cast(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 ] ) { } \ No newline at end of file diff --git a/neo/d3xp/Game_local.h b/neo/d3xp/Game_local.h index 2ff62093..ba22c28a 100644 --- a/neo/d3xp/Game_local.h +++ b/neo/d3xp/Game_local.h @@ -588,7 +588,6 @@ private: void RunDebugInfo( void ); void InitScriptForMap( void ); - void SetScriptFPS(const float tCom_gameHz); void InitConsoleCommands( void ); void ShutdownConsoleCommands( void ); diff --git a/neo/game/Game_local.cpp b/neo/game/Game_local.cpp index 99d552a1..71f18645 100644 --- a/neo/game/Game_local.cpp +++ b/neo/game/Game_local.cpp @@ -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(this->gameFps)); } /* @@ -1243,8 +1241,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo gameRenderWorld = renderWorld; gameSoundWorld = soundWorld; - SetScriptFPS(static_cast(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 ] ) { } \ No newline at end of file diff --git a/neo/game/Game_local.h b/neo/game/Game_local.h index d32c91e6..13562af1 100644 --- a/neo/game/Game_local.h +++ b/neo/game/Game_local.h @@ -519,7 +519,6 @@ private: void RunDebugInfo( void ); void InitScriptForMap( void ); - void SetScriptFPS(const float tCom_gameHz); void InitConsoleCommands( void ); void ShutdownConsoleCommands( void );