… | |
… | |
329 | * carrying. |
329 | * carrying. |
330 | */ |
330 | */ |
331 | sum_weight (container); |
331 | sum_weight (container); |
332 | } |
332 | } |
333 | |
333 | |
|
|
334 | void |
|
|
335 | maptile::set_object_flag (int flag, int value) |
|
|
336 | { |
|
|
337 | if (!spaces) |
|
|
338 | return; |
|
|
339 | |
|
|
340 | for (mapspace *ms = spaces + size (); ms-- > spaces; ) |
|
|
341 | for (object *tmp = ms->bot; tmp; tmp = tmp->above) |
|
|
342 | tmp->flag [flag] = value; |
|
|
343 | } |
|
|
344 | |
334 | /* link_multipart_objects go through all the objects on the map looking |
345 | /* link_multipart_objects go through all the objects on the map looking |
335 | * for objects whose arch says they are multipart yet according to the |
346 | * for objects whose arch says they are multipart yet according to the |
336 | * info we have, they only have the head (as would be expected when |
347 | * info we have, they only have the head (as would be expected when |
337 | * they are saved). We do have to look for the old maps that did save |
348 | * they are saved). We do have to look for the old maps that did save |
338 | * the more sections and not re-add sections for them. |
349 | * the more sections and not re-add sections for them. |