diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:59:53 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:59:53 +0000 |
commit | 56493c5bdfa181d172acbd56cb69589c28623b47 (patch) | |
tree | 11073a4558e6190ed8204eb6d6bdb6028bd40ae3 /game/vehicles/train.cpp | |
parent | Add requires on factory like functions (diff) | |
download | ilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.bz2 ilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.xz ilt-56493c5bdfa181d172acbd56cb69589c28623b47.zip |
Allow activities to be changed when doing them
Diffstat (limited to 'game/vehicles/train.cpp')
-rw-r--r-- | game/vehicles/train.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/vehicles/train.cpp b/game/vehicles/train.cpp index f887be4..874db46 100644 --- a/game/vehicles/train.cpp +++ b/game/vehicles/train.cpp @@ -33,7 +33,7 @@ Train::tick(TickDuration dur) } void -Train::doActivity(const Go *, TickDuration dur) +Train::doActivity(Go *, TickDuration dur) { const auto maxSpeed = objects.front()->rvClass->maxSpeed; if (speed != maxSpeed) { @@ -42,7 +42,7 @@ Train::doActivity(const Go *, TickDuration dur) } void -Train::doActivity(const Idle *, TickDuration dur) +Train::doActivity(Idle *, TickDuration dur) { if (speed != 0.F) { speed -= std::min(speed, 30.F * dur.count()); |