16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 14:49:19 +02:00

build 180531. configurable cooling fans rotation rate, additional reverser position command, minor bug fixes

This commit is contained in:
tmj-fstate
2018-05-31 20:23:15 +02:00
parent 94f923ebb8
commit 1fa2f201f2
13 changed files with 42 additions and 17 deletions

View File

@@ -192,6 +192,9 @@ erase_extension( std::string &Filename );
void
replace_slashes( std::string &Filename );
// returns potential path part from provided file name
std::string substr_path( std::string const &Filename );
template <typename Type_>
void SafeDelete( Type_ &Pointer ) {
delete Pointer;
@@ -229,6 +232,8 @@ template <typename Type_>
Type_
min_speed( Type_ const Left, Type_ const Right ) {
if( Left == Right ) { return Left; }
return std::min(
( Left != -1 ?
Left :