aboutsummaryrefslogtreecommitdiffstats
path: root/examples/spacewars.cpp
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-03-29 16:17:22 +0100
committerSven Göthel <[email protected]>2024-03-29 16:17:22 +0100
commit5c371c950abfb580656db231807e83d95209a2b7 (patch)
tree84c911301e645af041c1d7adcc10aa7f447da8a0 /examples/spacewars.cpp
parenta2703385c8a5aaf69b8974866e715f9876e7a0c3 (diff)
C++ cleanup: Add missing override, use 'class' consistently for pixel::f4::vec_t, proper static_cast<decltype(ts.tv_sec)>() for 'struct timespec'.tv_sec
Diffstat (limited to 'examples/spacewars.cpp')
-rw-r--r--examples/spacewars.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/spacewars.cpp b/examples/spacewars.cpp
index e4bf7cf..559d1e4 100644
--- a/examples/spacewars.cpp
+++ b/examples/spacewars.cpp
@@ -458,7 +458,7 @@ class spaceship_t : public pixel::f2::linestrip_t {
rotate(pixel::adeg_to_rad(da_adeg));
}
- bool tick(const float dt) noexcept {
+ bool tick(const float dt) noexcept override {
pixel::f2::vec_t g = sun->gravity_ships(p_center);
velocity += g * dt;
move(velocity * dt);