mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 22:59:19 +00:00
C-style cast cleanup.
This commit is contained in:
parent
3e75c94a6c
commit
e56c3a86f2
@ -59,7 +59,10 @@ private:
|
||||
void place_passage(const passage& p);
|
||||
|
||||
bool on_board(const gamemap::location& loc) const
|
||||
{ return loc.x >= 0 && loc.y >= 0 && loc.x < (long)width_ && loc.y < (long)height_; }
|
||||
{ return loc.x >= 0 && loc.y >= 0 &&
|
||||
loc.x < lexical_cast<long>(width_) &&
|
||||
loc.y < static_cast<long>(height_); }
|
||||
|
||||
void set_terrain(gamemap::location loc, t_translation::t_letter t);
|
||||
void place_castle(const std::string& side, gamemap::location loc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user