ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/player.C
(Generate patch)

Comparing deliantra/server/common/player.C (file contents):
Revision 1.56 by root, Mon Oct 19 21:48:49 2009 UTC vs.
Revision 1.59 by root, Wed Nov 11 04:45:22 2009 UTC

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 */
117 } 119 }
118 120
119 freezer.put (ob->contr); 121 freezer.put (ob->contr);
120 freezer.put (KW_endplst); 122 freezer.put (KW_endplst);
121 123
122 SET_FLAG (ob, FLAG_NO_FIX_PLAYER);
123 CLEAR_FLAG (ob, FLAG_WIZ); 124 CLEAR_FLAG (ob, FLAG_WIZ);
124 ob->write (freezer); 125 ob->write (freezer);
125 126
126 CLEAR_FLAG (ob, FLAG_NO_FIX_PLAYER);
127
128 /* Eneq(@csd.uu.se): Reveal the container if we have one. */ 127 /* Eneq(@csd.uu.se): Reveal the container if we have one. */
129 ob->container = container; 128 ob->container = container;
130 129
131 ob->flag [FLAG_WIZ] = wiz; 130 ob->flag [FLAG_WIZ] = wiz;
132 131
133 INVOKE_PLAYER (SAVE_DONE, ob->contr); 132 INVOKE_PLAYER (SAVE_DONE, ob->contr);
134 133
135 return true; 134 return true;
136} 135}
136
137//-GPL
137 138
138bool 139bool
139player::save_pl (const char *path) 140player::save_pl (const char *path)
140{ 141{
141 object_freezer freezer; 142 object_freezer freezer;
445 446
446 nest.clear (); 447 nest.clear ();
447 448
448 goto skip; 449 goto skip;
449 } 450 }
451
452 default:
453 pfx = "UNKNOWN_DIRECTIVE{";
454 sfx = "}";
455 break;
450 } 456 }
451 457
452 buf << pfx; 458 buf << pfx;
453 cfpod = expand_cfpod (pl, buf, cfpod, end); 459 cfpod = expand_cfpod (pl, buf, cfpod, end);
454 buf << sfx; 460 buf << sfx;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines