… | |
… | |
304 | |
304 | |
305 | // temporary: wether the object can be saved in a map file |
305 | // temporary: wether the object can be saved in a map file |
306 | // contr => is a player |
306 | // contr => is a player |
307 | // head => only save head of a multitile object |
307 | // head => only save head of a multitile object |
308 | // owner => can not reference owner yet |
308 | // owner => can not reference owner yet |
309 | MTH bool can_map_save () const { return !contr && !head && !owner; } |
309 | MTH bool can_map_save () const { return !contr && !head && !owner && !flag [FLAG_NO_SAVE]; } |
310 | |
310 | |
311 | /* This return true if object has still randomitems which |
311 | /* This return true if object has still randomitems which |
312 | * could be expanded. |
312 | * could be expanded. |
313 | */ |
313 | */ |
314 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |
314 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |