… | |
… | |
248 | MTH void destroy (bool destroy_inventory = false); |
248 | MTH void destroy (bool destroy_inventory = false); |
249 | |
249 | |
250 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |
250 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |
251 | MTH void destroy_inv (bool drop_to_ground = false); |
251 | MTH void destroy_inv (bool drop_to_ground = false); |
252 | MTH object *insert (object *item); // insert into inventory |
252 | MTH object *insert (object *item); // insert into inventory |
253 | void remove_slow (); |
253 | void do_remove (); |
254 | MTH void remove () |
254 | MTH void remove () |
255 | { |
255 | { |
256 | if (!flag [FLAG_REMOVED]) |
256 | if (!flag [FLAG_REMOVED]) |
257 | remove_slow (); |
257 | do_remove (); |
258 | } |
258 | } |
259 | |
259 | |
260 | static bool can_merge_slow (object *op1, object *op2); |
260 | static bool can_merge_slow (object *op1, object *op2); |
261 | |
261 | |
262 | // this is often used in time-critical code, so optimise |
262 | // this is often used in time-critical code, so optimise |