diff options
author | Sven Göthel <[email protected]> | 2024-03-29 16:17:22 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-03-29 16:17:22 +0100 |
commit | 5c371c950abfb580656db231807e83d95209a2b7 (patch) | |
tree | 84c911301e645af041c1d7adcc10aa7f447da8a0 /examples/spacewars.cpp | |
parent | a2703385c8a5aaf69b8974866e715f9876e7a0c3 (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.cpp | 2 |
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); |