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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.137 by root, Thu May 17 14:14:55 2007 UTC vs.
Revision 1.139 by root, Fri May 18 01:01:02 2007 UTC

264 264
265 new_draw_info (NDI_UNIQUE, 0, ob, "Welcome Back!"); 265 new_draw_info (NDI_UNIQUE, 0, ob, "Welcome Back!");
266 266
267 esrv_new_player (this, ob->weight + ob->carrying); 267 esrv_new_player (this, ob->weight + ob->carrying);
268 268
269 ob->flag [FLAG_READY_WEAPON] = false;
270 ob->flag [FLAG_READY_SKILL] = false;
271 ob->flag [FLAG_READY_BOW] = false;
272
269 for (object *op = ob->inv; op; op = op->below) 273 for (object *op = ob->inv; op; op = op->below)
270 if (op->flag [FLAG_APPLIED]) 274 if (op->flag [FLAG_APPLIED])
271 switch (op->type) 275 switch (op->type)
272 { 276 {
273 case WAND: 277 case WAND:
274 case ROD: 278 case ROD:
275 case HORN: 279 case HORN:
276 case BOW: 280 case BOW:
277 case SKILL:
278 case SKILL_TOOL: 281 case SKILL_TOOL:
279 case WEAPON: 282 case WEAPON:
280 apply_special (ob, op, AP_UNAPPLY); 283 op->flag [FLAG_APPLIED] = false;
281 apply_special (ob, op, AP_APPLY); 284 apply_special (ob, op, AP_APPLY);
282 break; 285 break;
283 }
284 286
287 case SKILL:
288 op->flag [FLAG_APPLIED] = false;
289 break;
290 }
291
292 ob->change_weapon (combat_ob ? combat_ob : ranged_ob);
285 ob->update_stats (); 293 ob->update_stats ();
294
286 ns->floorbox_update (); 295 ns->floorbox_update ();
287
288 esrv_send_inventory (ob, ob); 296 esrv_send_inventory (ob, ob);
289 esrv_add_spells (this, 0); 297 esrv_add_spells (this, 0);
290 298
291 activate (); 299 activate ();
292 300

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines