… | |
… | |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
23 | */ |
24 | |
24 | |
25 | #include <global.h> |
25 | #include <global.h> |
26 | |
26 | |
|
|
27 | //+GPL |
|
|
28 | |
27 | /* Determine if the attacktype represented by the |
29 | /* Determine if the attacktype represented by the |
28 | * specified attack-number is enabled for dragon players. |
30 | * specified attack-number is enabled for dragon players. |
29 | * A dragon player (quetzal) can gain resistances for |
31 | * A dragon player (quetzal) can gain resistances for |
30 | * all enabled attacktypes. |
32 | * all enabled attacktypes. |
31 | */ |
33 | */ |
… | |
… | |
64 | INVOKE_PLAYER (SAVE, ob->contr); |
66 | INVOKE_PLAYER (SAVE, ob->contr); |
65 | |
67 | |
66 | int wiz = ob->flag [FLAG_WIZ]; |
68 | int wiz = ob->flag [FLAG_WIZ]; |
67 | |
69 | |
68 | /* Eneq(@csd.uu.se): If we have an open container hide it. */ |
70 | /* Eneq(@csd.uu.se): If we have an open container hide it. */ |
69 | object *container = ob->container; |
71 | object *container = ob->container_ (); |
70 | ob->container = 0; |
72 | ob->container = 0; |
71 | |
73 | |
72 | if (ob->map) |
74 | if (ob->map) |
73 | maplevel = ob->map->path; |
75 | maplevel = ob->map->path; |
74 | |
76 | |
… | |
… | |
132 | |
134 | |
133 | INVOKE_PLAYER (SAVE_DONE, ob->contr); |
135 | INVOKE_PLAYER (SAVE_DONE, ob->contr); |
134 | |
136 | |
135 | return true; |
137 | return true; |
136 | } |
138 | } |
|
|
139 | |
|
|
140 | //-GPL |
137 | |
141 | |
138 | bool |
142 | bool |
139 | player::save_pl (const char *path) |
143 | player::save_pl (const char *path) |
140 | { |
144 | { |
141 | object_freezer freezer; |
145 | object_freezer freezer; |
… | |
… | |
445 | |
449 | |
446 | nest.clear (); |
450 | nest.clear (); |
447 | |
451 | |
448 | goto skip; |
452 | goto skip; |
449 | } |
453 | } |
|
|
454 | |
|
|
455 | default: |
|
|
456 | pfx = "UNKNOWN_DIRECTIVE{"; |
|
|
457 | sfx = "}"; |
|
|
458 | break; |
450 | } |
459 | } |
451 | |
460 | |
452 | buf << pfx; |
461 | buf << pfx; |
453 | cfpod = expand_cfpod (pl, buf, cfpod, end); |
462 | cfpod = expand_cfpod (pl, buf, cfpod, end); |
454 | buf << sfx; |
463 | buf << sfx; |