Fix some compilation error (double->int)
This commit is contained in:
parent
7238b0b975
commit
193e125865
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue