16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 17:09:19 +02:00

Merge branch 'gfx-work' into udpnetwork

This commit is contained in:
milek7
2019-01-14 23:33:38 +01:00
17 changed files with 245 additions and 186 deletions

View File

@@ -374,6 +374,14 @@ global_settings::ConfigParse(cParser &Parser) {
Parser.getTokens();
Parser >> ResourceMove;
}
else if( token == "gfx.reflections.framerate" ) {
auto const updatespersecond { std::abs( Parser.getToken<double>() ) };
ReflectionUpdatesPerSecond = (
updatespersecond > 0 ?
1000 / std::min( 30.0, updatespersecond ) :
0 );
}
else if (token == "timespeed")
{
// przyspieszenie czasu, zmienna do testów