We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf6962 commit 38e9862Copy full SHA for 38e9862
src/enemy.cpp
@@ -1,6 +1,5 @@
1
#include <enemy.hpp>
2
#include <algorithm>
3
-#include <utility>
4
#include "enemy_params.hpp"
5
#include "glm/geometric.hpp"
6
#include "glm/vec2.hpp"
src/game.cpp
@@ -42,7 +42,7 @@ void Game::tick([[maybe_unused]] kvf::Seconds const dt) {
42
}
43
// Keep track of how many enemies were defeated and calculate score
44
auto res = std::erase_if(m_enemies, [](Enemy const& enemy) { return !enemy.get_health(); });
45
- update_score(res * 10);
+ update_score(static_cast<int>(res * 10));
46
m_light.set_position(m_cursor_pos);
47
m_lighthouse.rotate_towards_cursor(m_cursor_pos);
48
0 commit comments