summaryrefslogtreecommitdiffstats
path: root/dev/a2-carsoccer/car.cc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev/a2-carsoccer/car.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev/a2-carsoccer/car.cc b/dev/a2-carsoccer/car.cc
index 4b27cfe..ae1a857 100644
--- a/dev/a2-carsoccer/car.cc
+++ b/dev/a2-carsoccer/car.cc
@@ -8,6 +8,7 @@ Car::Car() : size_(3,2,4), collision_radius_(2.5) {
}
Car::~Car() {
+
}
@@ -41,6 +42,8 @@ float Car::speed() {
}
void Car::set_speed(float s) {
+ if (s > 50)
+ s = 50;
speed_ = s;
}