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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user