summaryrefslogtreecommitdiffstats
path: root/dev/a2-carsoccer/car.cc
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-10-04 21:38:36 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-10-04 21:38:36 -0500
commit1b2546a99a266662b5c4b9c985a5257c211ecea7 (patch)
treeee74200e76c87ea03ff8f70bd47b06c999b9713d /dev/a2-carsoccer/car.cc
parentFix gnu's stupidity (diff)
downloadcsci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar.gz
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar.bz2
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar.lz
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar.xz
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.tar.zst
csci4611-1b2546a99a266662b5c4b9c985a5257c211ecea7.zip
Diffstat (limited to 'dev/a2-carsoccer/car.cc')
-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;
}