… | |
… | |
256 | op->debug_desc ()); |
256 | op->debug_desc ()); |
257 | op->set_speed (0); |
257 | op->set_speed (0); |
258 | continue; |
258 | continue; |
259 | } |
259 | } |
260 | |
260 | |
261 | //TODO: remove soon |
|
|
262 | if (expect_false (op->speed < 0.)) |
|
|
263 | { |
|
|
264 | LOG (llevError, "BUG: process_events(): Object %s has negative speed (%f), " |
|
|
265 | "but is on active list\n", op->debug_desc (), op->speed); |
|
|
266 | op->speed = -op->speed; |
|
|
267 | continue; |
|
|
268 | } |
|
|
269 | |
|
|
270 | /* Animate the object. Bug or feature that anim_speed |
261 | /* Animate the object. Bug or feature that anim_speed |
271 | * is based on ticks, and not the creatures speed? |
262 | * is based on ticks, and not the creatures speed? |
272 | */ |
263 | */ |
273 | if (op->anim_speed && op->last_anim >= op->anim_speed) |
264 | if (op->anim_speed && op->last_anim >= op->anim_speed) |
274 | { |
265 | { |