… | |
… | |
18 | * You should have received a copy of the GNU General Public License |
18 | * You should have received a copy of the GNU General Public License |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 | * |
20 | * |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | */ |
22 | */ |
23 | |
|
|
24 | /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects. |
|
|
25 | sub/add_weight will transcend the environment updating the carrying |
|
|
26 | variable. */ |
|
|
27 | |
23 | |
28 | #include <global.h> |
24 | #include <global.h> |
29 | #include <loader.h> |
25 | #include <loader.h> |
30 | #include <sproto.h> |
26 | #include <sproto.h> |
31 | |
27 | |
… | |
… | |
1408 | * the only place this is not set is when saving the player. |
1404 | * the only place this is not set is when saving the player. |
1409 | */ |
1405 | */ |
1410 | bool |
1406 | bool |
1411 | object::write (object_freezer &f) |
1407 | object::write (object_freezer &f) |
1412 | { |
1408 | { |
1413 | archetype *at = arch ? (archetype *)arch : archetype::empty; |
1409 | archetype *at = arch ? arch : archetype::empty; |
1414 | |
1410 | |
1415 | f.put (KW_arch, at->archname); |
1411 | f.put (KW_arch, at->archname); |
1416 | write_diff (f, this, at); |
1412 | write_diff (f, this, at); |
1417 | |
1413 | |
1418 | for (object *tmp = inv; tmp; tmp = tmp->below) |
1414 | for (object *tmp = inv; tmp; tmp = tmp->below) |