From e9f846cd2bfbfa6845ab2df21a1399267e5a8629 Mon Sep 17 00:00:00 2001 From: Frederik <frederik@prasch.de> Date: Thu, 6 Feb 2025 03:41:36 +0100 Subject: [PATCH] Fix missing config needed for unit construction and set starting units to spawn in unavailable state --- src/game/Level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Level.cpp b/src/game/Level.cpp index 15318c5..53e8448 100644 --- a/src/game/Level.cpp +++ b/src/game/Level.cpp @@ -100,7 +100,7 @@ std::shared_ptr<Level> Level::loadLevel(std::string path, Engine& engine) { units.push_back(Unit( x, y, static_cast<UnitFaction>(faction_id), UnitId::INFANTERY, - UnitState::IDLE, engine.getUnitConfig())); + UnitState::UNAVAILABLE, engine.getUnitConfig())); } has_factions[static_cast<int>(faction_id)] = true; } -- GitLab