… | |
… | |
173 | */ |
173 | */ |
174 | |
174 | |
175 | void |
175 | void |
176 | animate_object (object *op, int dir) |
176 | animate_object (object *op, int dir) |
177 | { |
177 | { |
178 | int |
|
|
179 | max_state; /* Max animation state object should be drawn in */ |
178 | int max_state; /* Max animation state object should be drawn in */ |
180 | int |
|
|
181 | base_state; /* starting index # to draw from */ |
179 | int base_state; /* starting index # to draw from */ |
182 | |
180 | |
183 | if (!op->animation_id || !NUM_ANIMATIONS (op)) |
181 | if (!op->animation_id || !NUM_ANIMATIONS (op)) |
184 | { |
182 | { |
185 | LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ()); |
183 | LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ()); |
186 | return; |
184 | return; |