mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-06 06:26:13 +00:00
fixing warnings
This commit is contained in:
@@ -9,9 +9,9 @@ namespace BBM
|
||||
ResumeLobbyComponent::ResumeLobbyComponent(WAL::Entity &entity, int playerNumber, WAL::Entity &button, WAL::Entity &tile, int pColor)
|
||||
: WAL::Component(entity),
|
||||
playerID(playerNumber),
|
||||
playerColor(pColor),
|
||||
readyButton(button),
|
||||
coloredTile(tile),
|
||||
playerColor(pColor)
|
||||
coloredTile(tile)
|
||||
{}
|
||||
|
||||
WAL::Component *ResumeLobbyComponent::clone(WAL::Entity &entity) const
|
||||
|
||||
@@ -61,6 +61,7 @@ TEST_CASE("View add entity", "[View]")
|
||||
.addComponent<PositionComponent>();
|
||||
scene.applyChanges();
|
||||
REQUIRE(scene.view<PositionComponent>().size() == 2);
|
||||
(void)entity;
|
||||
}
|
||||
|
||||
TEST_CASE("View remove entity", "[View]")
|
||||
@@ -75,6 +76,7 @@ TEST_CASE("View remove entity", "[View]")
|
||||
REQUIRE(scene.view<PositionComponent>().size() == 0);
|
||||
for (auto &it : scene.view<PositionComponent>())
|
||||
REQUIRE(false);
|
||||
(void)scene;
|
||||
}
|
||||
|
||||
TEST_CASE("View cache switch", "[View]")
|
||||
|
||||
Reference in New Issue
Block a user