… | |
… | |
383 | |
383 | |
384 | // temporary: wether the object can be saved in a map file |
384 | // temporary: wether the object can be saved in a map file |
385 | // contr => is a player |
385 | // contr => is a player |
386 | // head => only save head of a multitile object |
386 | // head => only save head of a multitile object |
387 | // owner => can not reference owner yet |
387 | // owner => can not reference owner yet |
388 | MTH bool can_map_save () const { return !contr && !head && !owner && !flag [FLAG_NO_MAP_SAVE]; } |
388 | MTH bool can_map_save () const { return !head && (!owner || owner->contr) && !contr && !flag [FLAG_NO_MAP_SAVE]; } |
389 | |
389 | |
390 | /* This return true if object has still randomitems which |
390 | /* This return true if object has still randomitems which |
391 | * could be expanded. |
391 | * could be expanded. |
392 | */ |
392 | */ |
393 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |
393 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |