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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user