Skip to content

Commit

Permalink
Templatize the unit animation frame parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 14, 2017
1 parent c97adac commit 242afba
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 322 deletions.
1 change: 1 addition & 0 deletions src/units/animation_component.cpp
Expand Up @@ -173,6 +173,7 @@ bool unit_animation_component::invalidate (const display & disp)
params.image_mod = u_.image_mods();
params.halo_mod = u_.TC_image_mods();
params.image= u_.default_anim_image();
params.drawing_layer = display::LAYER_UNIT_DEFAULT - display::LAYER_UNIT_FIRST;

result |= get_animation()->invalidate(params);
}
Expand Down
2 changes: 1 addition & 1 deletion src/units/drawer.cpp
Expand Up @@ -144,7 +144,7 @@ void unit_drawer::redraw_unit (const unit & u) const
params.image_mod = u.image_mods();
params.halo_mod = u.TC_image_mods();
params.image= u.default_anim_image();

params.drawing_layer = display::LAYER_UNIT_DEFAULT - display::LAYER_UNIT_FIRST;

if(u.incapacitated()) params.image_mod +="~GS()";
params.primary_frame = true;
Expand Down

0 comments on commit 242afba

Please sign in to comment.