Merge pull request #185 from AnonymusRaccoon/fix_player_death

Fix player death
This commit is contained in:
Clément Le Bihan
2021-06-17 14:50:46 +02:00
committed by GitHub
19 changed files with 47 additions and 19 deletions
@@ -72,7 +72,7 @@ namespace BBM
&& (buttonPos.y <= mousePos.y && mousePos.y <= buttonPos.y + dimensions.y));
}
void MenuControllableSystem::onSelfUpdate()
void MenuControllableSystem::onSelfUpdate(std::chrono::nanoseconds dtime)
{
RAY::Vector2 rayMousePos = RAYControl::Mouse::getCursorPosition();
RAY::Vector2 winSize = RAY::Window::getInstance().getDimensions();
@@ -33,7 +33,7 @@ namespace BBM
//! @brief time (in millisecond) since last check
std::chrono::time_point<std::chrono::steady_clock> now;
//! @inherit
void onSelfUpdate() override;
void onSelfUpdate(std::chrono::nanoseconds dtime) override;
//! @brief A default constructor
explicit MenuControllableSystem(WAL::Wal &wal);