Skip to content

Commit

Permalink
BLUGA: Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 4, 2023
1 parent 99f6742 commit 631e605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ namespace Systems {
Raylib::Color tint = Raylib::Color(Raylib::ColorDef::White);
Raylib::Vector2 spritePos = {0, 0};
Types::Origin origin = {0, 0};
Raylib::Vector2 size = {0, 0};

rotation = arrRotation.exist(entityId) ? arrRotation[entityId].rotate : rotation;
tint = arrColor.exist(entityId) ? arrColor[entityId].color : tint;
Expand All @@ -129,7 +130,7 @@ namespace Systems {
Maths::intToFloatConservingDecimals(position.y));
size = calculateSize(sprite);
sprite.drawPro(
Raylib::Rectangle(rect.x, rect.y, rect.width, rect.height),
Raylib::Rectangle(0.F, 0.F, sprite.getTextureWidth(), sprite.getTextureHeight()),
Raylib::Rectangle(pos.x, pos.y, size.x, size.y),
Raylib::Vector2(origin.x, origin.y),
rotation,
Expand Down
5 changes: 3 additions & 2 deletions libs/B-luga-physics/include/B-luga-physics/ECSCustomTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
#include <cstddef>
#include <functional>
#include <optional>
#include <any>
#include <vector>
#include "B-luga/Json.hpp"
#include "B-luga/Clock.hpp"
#include "nlohmann/json.hpp"
#include "B-luga/Registry.hpp"

// all values are in percentage of the screen
Expand Down Expand Up @@ -199,7 +200,7 @@ namespace Types {
}
_physicsMap[ZIGZAG] = zigzag;
}
std::unordered_map<physicsType_e, std::any> _physicsMap;
std::unordered_map<physicsType, std::any> _physicsMap;
};

struct Dead {
Expand Down

0 comments on commit 631e605

Please sign in to comment.