recruit now make unit appear facing random direction, should help with #10837

This commit is contained in:
Jérémy Rosen 2008-01-28 20:36:27 +00:00
parent dc35a4411c
commit 54d8df7460

View file

@ -256,6 +256,7 @@ void unit_recruited(gamemap::location& loc)
disp->scroll_to_tile(loc,game_display::ONSCREEN);
disp->draw();
u->second.set_hidden(false);
u->second.set_facing(static_cast<gamemap::location::DIRECTION>(rand()%gamemap::location::NDIRECTIONS));
unit_animator animator;
animator.add_animation(&u->second,"recruited",loc);
animator.start_animations();