summaryrefslogtreecommitdiff
path: root/kurator/src/Battle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kurator/src/Battle.cpp')
-rw-r--r--kurator/src/Battle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kurator/src/Battle.cpp b/kurator/src/Battle.cpp
index 3f7d39e..7bb4e7d 100644
--- a/kurator/src/Battle.cpp
+++ b/kurator/src/Battle.cpp
@@ -15,6 +15,7 @@
#include <kurator/sim/Point.h>
#include <kurator/universe/ShipType.h>
+#include "colors.h"
#include "components.h"
#include "Session.h"
#include "Title.h"
@@ -32,7 +33,7 @@ Battle::Battle(std::shared_ptr<Session> _session) :
auto& registry = battle->registry();
auto ships = registry.view<sim::Team, universe::ShipType>();
for (const auto& [entity, team, type] : ships.each())
- registry.emplace<Marker>(entity, 5.0, team.id ? GREEN : RED, type.name);
+ registry.emplace<Marker>(entity, 5.0, team_color(team.id), type.name);
}