Update types of texture variables
All checks were successful
Linux arm64 / Build (push) Successful in 4m56s

This commit is contained in:
Morph01
2024-03-28 16:40:41 +01:00
parent c5b07e2ae6
commit 58b401f257
2 changed files with 3 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ class Client;
namespace gui { namespace gui {
class Hud : public GuiWidget { class Hud : public GuiWidget {
private: private:
unsigned int m_GunTexture; std::uint64_t m_GunTexture;
unsigned int m_JPTexture; std::uint64_t m_JPTexture;
public: public:
Hud(GuiWidget* parent, Client* client); Hud(GuiWidget* parent, Client* client);

View File

@@ -84,7 +84,7 @@ void Hud::RenderTime() {
timeRemaining += 1000; timeRemaining += 1000;
int seconds = timeRemaining / 1000 % 60; int seconds = timeRemaining / 1000 % 60;
int minutes = timeRemaining / 1000 / 60; int minutes = static_cast<int>(timeRemaining) / 1000 / 60;
timeFormated = (minutes < 10 ? "0" + std::to_string(minutes) : std::to_string(minutes)) + " : " + timeFormated = (minutes < 10 ? "0" + std::to_string(minutes) : std::to_string(minutes)) + " : " +
(seconds < 10 ? "0" + std::to_string(seconds) : std::to_string(seconds)); (seconds < 10 ? "0" + std::to_string(seconds) : std::to_string(seconds));