mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-21 02:11:16 +00:00
remove setscriptfps not used anymore
This commit is contained in:
parent
9ab12b73af
commit
8738450bb8
4 changed files with 2 additions and 79 deletions
|
@ -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 ] ) { }
|
|
@ -588,7 +588,6 @@ private:
|
|||
void RunDebugInfo( void );
|
||||
|
||||
void InitScriptForMap( void );
|
||||
void SetScriptFPS(const float tCom_gameHz);
|
||||
|
||||
void InitConsoleCommands( void );
|
||||
void ShutdownConsoleCommands( void );
|
||||
|
|
|
@ -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 ] ) { }
|
|
@ -519,7 +519,6 @@ private:
|
|||
void RunDebugInfo( void );
|
||||
|
||||
void InitScriptForMap( void );
|
||||
void SetScriptFPS(const float tCom_gameHz);
|
||||
|
||||
void InitConsoleCommands( void );
|
||||
void ShutdownConsoleCommands( void );
|
||||
|
|
Loading…
Reference in a new issue