Skip to content

Commit

Permalink
Fix 8b046f6: min and max in std
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsmh committed Apr 14, 2021
1 parent 78cd0a5 commit 8a931c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/water_cmd.cpp
Expand Up @@ -553,7 +553,7 @@ CommandCost CmdBuildCanal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32

static int WaterClearCostMultiplier(WaterDepth depth)
{
const int real_depth = max<int>(depth, 1);
const int real_depth = std::max<int>(depth, 1);
switch (_settings_game.difficulty.water_clearing_cost_exponent) {
case 0: return 1;
case 1: return real_depth;
Expand Down

0 comments on commit 8a931c9

Please sign in to comment.