removed a wassert where the condition is possible...
...and can be handled in a logical way
This commit is contained in:
parent
8d4bc7b336
commit
70a04961d6
1 changed files with 4 additions and 2 deletions
|
@ -1666,8 +1666,10 @@ void unit::restart_animation(const game_display& disp,int start_time) {
|
|||
}
|
||||
|
||||
void unit::set_facing(gamemap::location::DIRECTION dir) {
|
||||
wassert(dir != gamemap::location::NDIRECTIONS);
|
||||
facing_ = dir;
|
||||
if(dir != gamemap::location::NDIRECTIONS) {
|
||||
facing_ = dir;
|
||||
}
|
||||
//else look at yourself (not available so continue to face the same direction)
|
||||
}
|
||||
|
||||
void unit::redraw_unit(game_display& disp, const gamemap::location& loc)
|
||||
|
|
Loading…
Add table
Reference in a new issue