Skip to content

Commit bf8f16a

Browse files
authored
Add missing hull component to probes (#2895)
1 parent e94cbd2 commit bf8f16a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/systems/probe.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ sp::ecs::Entity ProbeSystem::launch(sp::ecs::Entity ship, glm::vec2 target)
2727
probe.addComponent<sp::Transform>(*ship_transform);
2828
probe.addComponent<CallSign>().callsign = probe.toString().split(":", 1)[0] + "P";
2929
probe.addComponent<LifeTime>().lifetime = 600.0f; // 600 sec., 10 min.
30+
auto& hull = probe.addComponent<Hull>();
31+
hull.current = hull.max = 1;
3032

3133
// Apply the launching ship's faction, if any.
3234
if (auto faction = ship.getComponent<Faction>())

0 commit comments

Comments
 (0)