mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 00:09:19 +02:00
New function for speed comparisons based on Min0R.
Working LimitVelocity.
This commit is contained in:
10
Globals.cpp
10
Globals.cpp
@@ -839,4 +839,14 @@ AnsiString Global::Bezogonkow(AnsiString str, bool _)
|
||||
return str;
|
||||
}
|
||||
|
||||
double Global::Min0RSpeed(double vel1, double vel2)
|
||||
{ // rozszerzenie funkcji Min0R o wartoœci -1.0
|
||||
if (vel1 == -1.0)
|
||||
vel1 = std::numeric_limits<double>::max();
|
||||
if (vel2 == -1.0)
|
||||
vel2 = std::numeric_limits<double>::max();
|
||||
return Min0R(vel1, vel2);
|
||||
}
|
||||
|
||||
|
||||
#pragma package(smart_init)
|
||||
|
||||
Reference in New Issue
Block a user