diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-09 20:58:19 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-09 20:58:19 +0100 |
commit | fae89fbf16b961cbc79e373da13dfe13794659bb (patch) | |
tree | f4bbbb664ee021a3e5fec5a3bfc70c655c05b7ab | |
parent | Add boost_program_options for command line parsing (diff) | |
download | ilt-resviewer.tar.bz2 ilt-resviewer.tar.xz ilt-resviewer.zip |
Fix operator precedence warningresviewer
-rw-r--r-- | application/resviewer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/resviewer.cpp b/application/resviewer.cpp index 7656b29..418ac74 100644 --- a/application/resviewer.cpp +++ b/application/resviewer.cpp @@ -52,7 +52,7 @@ private: tick(TickDuration tick) override { if (autoRotate != 0) { - cameraAngle = normalize(cameraAngle + autoRotate * tick.count()); + cameraAngle = normalize(cameraAngle + (autoRotate * tick.count())); camera.setPosition(calcCameraPosition()); camera.lookAt({0, 0, TERRAIN_HEIGHT + cameraFocus}); } |