diff -r 3437fdd5c0a8 -r a7e266f966d9 src/industry_cmd.cpp --- a/src/industry_cmd.cpp Mon Nov 19 04:34:40 2007 +0000 +++ b/src/industry_cmd.cpp Mon Nov 19 18:38:10 2007 +0000 @@ -1628,7 +1628,7 @@ } else { int count = indspec->num_table; const IndustryTileTable * const *itt = indspec->table; - int num = clamp(p2, 0, count - 1); + int num = Clamp(p2, 0, count - 1); _error_message = STR_0239_SITE_UNSUITABLE; do { @@ -2047,7 +2047,7 @@ new_prod += max(((RandomRange(50) + 10) * old_prod) >> 8, 1U); } - new_prod = clamp(new_prod, 1, 255); + new_prod = Clamp(new_prod, 1, 255); /* Do not stop closing the industry when it has the lowest possible production rate */ if (new_prod == old_prod && old_prod > 1) { closeit = false;