Fix some compilation error (double->int)

This commit is contained in:
Benoît Timbert 2008-05-18 16:10:29 +00:00
parent 7238b0b975
commit 193e125865

View file

@ -391,14 +391,14 @@ void unit_frame::redraw(const int frame_time,bool first_time,const gamemap::loca
break;
}
if(direction != gamemap::location::SOUTH_WEST && direction != gamemap::location::NORTH_WEST) {
*halo_id = halo::add(x+current_data.halo_x* game_display::get_singleton()->get_zoom_factor(),
y+current_data.halo_y* game_display::get_singleton()->get_zoom_factor(),
*halo_id = halo::add(static_cast<int>(x+current_data.halo_x* game_display::get_singleton()->get_zoom_factor()),
static_cast<int>(y+current_data.halo_y* game_display::get_singleton()->get_zoom_factor()),
current_data.halo,
gamemap::location(-1, -1),
orientation);
} else {
*halo_id = halo::add(x-current_data.halo_x* game_display::get_singleton()->get_zoom_factor(),
y+current_data.halo_y* game_display::get_singleton()->get_zoom_factor(),
*halo_id = halo::add(static_cast<int>(x-current_data.halo_x* game_display::get_singleton()->get_zoom_factor()),
static_cast<int>(y+current_data.halo_y* game_display::get_singleton()->get_zoom_factor()),
current_data.halo,
gamemap::location(-1, -1),
orientation);