mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 15:49:19 +02:00
reflection update interval fix
This commit is contained in:
@@ -410,10 +410,7 @@ global_settings::ConfigParse(cParser &Parser) {
|
||||
else if( token == "gfx.reflections.framerate" ) {
|
||||
|
||||
auto const updatespersecond { std::abs( Parser.getToken<double>() ) };
|
||||
ReflectionUpdatesPerSecond = (
|
||||
updatespersecond > 0 ?
|
||||
1000 / std::min( 30.0, updatespersecond ) :
|
||||
0 );
|
||||
ReflectionUpdateInterval = 1.0 / updatespersecond;
|
||||
}
|
||||
else if (token == "timespeed")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user