… | |
… | |
370 | /* Animate the object. Bug or feature that anim_speed |
370 | /* Animate the object. Bug or feature that anim_speed |
371 | * is based on ticks, and not the creatures speed? |
371 | * is based on ticks, and not the creatures speed? |
372 | */ |
372 | */ |
373 | if (op->anim_speed && op->last_anim >= op->anim_speed) |
373 | if (op->anim_speed && op->last_anim >= op->anim_speed) |
374 | { |
374 | { |
375 | if ((op->type == PLAYER)) |
375 | animate_object (op, op->type == PLAYER ? op->facing : op->direction); |
376 | animate_object (op, op->facing); |
|
|
377 | else |
|
|
378 | animate_object (op, op->direction); |
|
|
379 | |
376 | |
380 | op->last_anim = 1; |
377 | op->last_anim = 1; |
381 | } |
378 | } |
382 | else |
379 | else |
383 | op->last_anim++; |
380 | op->last_anim++; |