Skip to content

Commit

Permalink
maint: update game_server
Browse files Browse the repository at this point in the history
  • Loading branch information
diamante0018 committed Dec 9, 2023
1 parent 9ae077d commit 77d96e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enum class game_type
iw4,
iw5,
iw6,
iw7,
s1,
t7,
};
Expand All @@ -20,6 +21,7 @@ inline const std::string& resolve_game_type_name(const game_type game)
{game_type::iw4, "IW4"},
{game_type::iw5, "IW5"},
{game_type::iw6, "IW6"},
{game_type::iw7, "IW7"},
{game_type::s1, "S1"},
{game_type::t7, "T7"},
};
Expand All @@ -44,6 +46,11 @@ inline game_type resolve_game_type(const std::string& game_name)
return game_type::iw6;
}

if (game_name == "IW7")
{
return game_type::iw7;
}

if (game_name == "S1")
{
return game_type::s1;
Expand Down

0 comments on commit 77d96e7

Please sign in to comment.