diff options
author | Matt Strapp <matt@mattstrapp.net> | 2021-10-04 21:38:36 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2021-10-04 21:38:36 -0500 |
commit | 1b2546a99a266662b5c4b9c985a5257c211ecea7 (patch) | |
tree | ee74200e76c87ea03ff8f70bd47b06c999b9713d /dev/a2-carsoccer/car.cc | |
parent | Fix gnu's stupidity (diff) | |
download | csci4611-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 |
Do a2submission-p2.0
Diffstat (limited to 'dev/a2-carsoccer/car.cc')
-rw-r--r-- | dev/a2-carsoccer/car.cc | 3 |
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;
}
|