1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Changing other enums to enum classes and adding comments with reasons for why some enums stay as enum-in-namespace.

This commit is contained in:
Warzyw647
2023-05-20 13:29:55 +02:00
parent d74fdad432
commit 5363fd5db3
5 changed files with 34 additions and 40 deletions

View File

@ -185,7 +185,7 @@ void CMapGenerator::addPlayerInfo()
{
// Calculate which team numbers exist
enum ETeams {CPHUMAN = 0, CPUONLY = 1, AFTER_LAST = 2};
enum ETeams {CPHUMAN = 0, CPUONLY = 1, AFTER_LAST = 2}; // Used as a kind of a local named array index, so left as enum, not enum class
std::array<std::list<int>, 2> teamNumbers;
std::set<int> teamsTotal;