diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-03 00:03:24 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-03 00:03:24 +0500 |
| commit | 1eec0fa77a420cc2e636f34dba5cc1609d41958e (patch) | |
| tree | d6dd7a8d908781b474f64844f58c983ec49f8d24 | |
| parent | 9a5b910f5c849439d104850b3a27aafeab6bf998 (diff) | |
upd: TilesetTile argument type in place_tile
| -rw-r--r-- | src/level.cpp | 2 | ||||
| -rw-r--r-- | src/level.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/level.cpp b/src/level.cpp index b3a2a7b..d03703e 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -40,7 +40,7 @@ namespace silly::editor { } } - void TileFloor::place_tile(std::shared_ptr<TilesetTile> &tile, + void TileFloor::place_tile(const std::shared_ptr<TilesetTile> tile, const sf::Vector2i &position, const float &rotation) { TileLayer &layer = this->layers.at(tile->type); diff --git a/src/level.hpp b/src/level.hpp index a0bcb23..59ebc3c 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -32,7 +32,7 @@ namespace silly::editor { ~TileFloor() = default; void render(sf::RenderWindow &window) const; - void place_tile(std::shared_ptr<TilesetTile> &tile, + void place_tile(const std::shared_ptr<TilesetTile> tile, const sf::Vector2i &position, const float &rotation); void remove_tile(TilesetTileType type, const sf::Vector2i &position); |
