Browse Source

apply format

djeada 1 month ago
parent
commit
fa2c52b668
2 changed files with 5 additions and 4 deletions
  1. 2 2
      game/systems/ai_system/ai_reasoner.cpp
  2. 3 2
      game/systems/ai_system/ai_tactical.h

+ 2 - 2
game/systems/ai_system/ai_reasoner.cpp

@@ -11,8 +11,8 @@ namespace Game::Systems::AI {
 void AIReasoner::updateContext(const AISnapshot &snapshot, AIContext &ctx) {
 void AIReasoner::updateContext(const AISnapshot &snapshot, AIContext &ctx) {
 
 
   if (!ctx.nation) {
   if (!ctx.nation) {
-    ctx.nation =
-        Game::Systems::NationRegistry::instance().getNationForPlayer(ctx.playerId);
+    ctx.nation = Game::Systems::NationRegistry::instance().getNationForPlayer(
+        ctx.playerId);
   }
   }
 
 
   cleanupDeadUnits(snapshot, ctx);
   cleanupDeadUnits(snapshot, ctx);

+ 3 - 2
game/systems/ai_system/ai_tactical.h

@@ -48,8 +48,9 @@ public:
                    const std::vector<const ContactSnapshot *> &allEnemies,
                    const std::vector<const ContactSnapshot *> &allEnemies,
                    float isolationRadius = 8.0f);
                    float isolationRadius = 8.0f);
 
 
-  static float getUnitTypePriority(const std::string &unitType,
-                                   const Game::Systems::Nation *nation = nullptr);
+  static float
+  getUnitTypePriority(const std::string &unitType,
+                      const Game::Systems::Nation *nation = nullptr);
 };
 };
 
 
 } // namespace Game::Systems::AI
 } // namespace Game::Systems::AI