16
0
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:
milek7
2019-09-11 23:34:01 +02:00
parent 5fdd56b642
commit eec042197d
4 changed files with 6 additions and 10 deletions

View File

@@ -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")
{