Skip to content

Commit

Permalink
Merge pull request #297 from Janzert/map-size-dist
Browse files Browse the repository at this point in the history
Bring engine map size distribution in line with server.
  • Loading branch information
harikmenon authored Nov 14, 2017
2 parents 8a4ecd4 + 3ee2533 commit 9465b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environment/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int main(int argc, char** argv) {
if (mapWidth == 0 && mapHeight == 0) {
// Always generate a 3:2 aspect ratio
std::vector<unsigned short> mapSizeChoices =
{ 80, 80, 88, 88, 96, 96, 96, 104, 104, 104, 112, 112, 112, 120, 120, 128, 128 };
{ 80, 80, 88, 88, 96, 96, 96, 104, 104, 104, 104, 112, 112, 112, 120, 120, 128, 128 };
std::mt19937 prg(seed);
util::uniform_int_distribution<unsigned long> size_dist(0, mapSizeChoices.size() - 1);
auto mapBase = mapSizeChoices[size_dist(prg)];
Expand Down

0 comments on commit 9465b12

Please sign in to comment.