Used two wrong casts, thanks uso for spotting it.

This commit is contained in:
Mark de Wever 2007-08-26 21:47:59 +00:00
parent f0b8f42ac1
commit 732fbac8ba
2 changed files with 2 additions and 2 deletions

View File

@ -1089,7 +1089,7 @@ void terrain_builder::build_terrains()
}
if(rule_matches(rule->second, *itor - loc, rule_index,
lexical_cast<size_t>
static_cast<size_t>
(biggest_constraint_adjacent + 1) !=
rule->second.constraints.size())) {

View File

@ -60,7 +60,7 @@ private:
bool on_board(const gamemap::location& loc) const
{ return loc.x >= 0 && loc.y >= 0 &&
loc.x < lexical_cast<long>(width_) &&
loc.x < static_cast<long>(width_) &&
loc.y < static_cast<long>(height_); }
void set_terrain(gamemap::location loc, t_translation::t_letter t);