… | |
… | |
475 | } |
475 | } |
476 | |
476 | |
477 | // if the object has an animation, try to provide a default face |
477 | // if the object has an animation, try to provide a default face |
478 | if (has_anim ()) |
478 | if (has_anim ()) |
479 | { |
479 | { |
480 | const animation &anim_ob = anim (); |
|
|
481 | |
|
|
482 | if (anim_speed) |
480 | if (anim_speed) |
483 | // if this item is time-animated, force the last frame |
481 | // if this item is time-animated, force the last frame |
484 | animate_object (this, 0); |
482 | animate_object (this, 0); |
485 | else if (flag [FLAG_MONSTER]) |
483 | else if (flag [FLAG_MONSTER]) |
486 | // if it is a monster, set appropriate facing |
484 | // if it is a monster, set appropriate facing |