Fixing a misplaced min function. Thanks, Gnonthgol
This commit is contained in:
parent
6d8f99832f
commit
af0def36c2
@ -179,7 +179,7 @@ public:
|
|||||||
if(!w.isDurationSet) {
|
if(!w.isDurationSet) {
|
||||||
if(0 < settings[highway]) {
|
if(0 < settings[highway]) {
|
||||||
if(0 < maxspeed)
|
if(0 < maxspeed)
|
||||||
w.speed = std::min(maxspeed, settings[highway]);
|
w.speed = maxspeed;
|
||||||
else
|
else
|
||||||
w.speed = settings[highway];
|
w.speed = settings[highway];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user