diff options
author | Aki <please@ignore.pl> | 2022-12-31 15:11:45 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-12-31 15:11:45 +0100 |
commit | bdc690d00c3c2774730dd893ddccb14efc9e0b94 (patch) | |
tree | d8b6506442a56ed68541642ab4b6717bb9382b9c /campaign | |
parent | d90ab6b90f2507970c2da52b166d26a7c9b48d66 (diff) | |
download | kurator-bdc690d00c3c2774730dd893ddccb14efc9e0b94.zip kurator-bdc690d00c3c2774730dd893ddccb14efc9e0b94.tar.gz kurator-bdc690d00c3c2774730dd893ddccb14efc9e0b94.tar.bz2 |
Renamed misleading total_teams() method
Diffstat (limited to 'campaign')
-rw-r--r-- | campaign/include/kurator/campaign/Scenario.h | 2 | ||||
-rw-r--r-- | campaign/src/Scenario.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/campaign/include/kurator/campaign/Scenario.h b/campaign/include/kurator/campaign/Scenario.h index cbefd56..8d8d6ea 100644 --- a/campaign/include/kurator/campaign/Scenario.h +++ b/campaign/include/kurator/campaign/Scenario.h @@ -17,7 +17,7 @@ struct Scenario std::string name; double radius; std::vector<ShipConfig> ships; - int total_teams() const; + int last_team() const; }; diff --git a/campaign/src/Scenario.cpp b/campaign/src/Scenario.cpp index cd5a1c6..74cad9e 100644 --- a/campaign/src/Scenario.cpp +++ b/campaign/src/Scenario.cpp @@ -8,7 +8,7 @@ namespace campaign int -Scenario::total_teams() const +Scenario::last_team() const { int last_team = 0; for (const auto& ship : ships) { |