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.109 by root, Sun Mar 18 03:05:40 2007 UTC vs.
Revision 1.110 by root, Mon Apr 16 06:23:43 2007 UTC

877 char buf[MAX_BUF]; 877 char buf[MAX_BUF];
878 878
879 /* this must before then initial items are given */ 879 /* this must before then initial items are given */
880 esrv_new_player (op->contr, op->weight + op->carrying); 880 esrv_new_player (op->contr, op->weight + op->carrying);
881 881
882 treasurelist *tl = find_treasurelist ("starting_wealth"); 882 treasurelist *tl = treasurelist::find ("starting_wealth");
883 if (tl) 883 if (tl)
884 create_treasure (tl, op, 0, 0, 0); 884 create_treasure (tl, op, 0, 0, 0);
885 885
886 INVOKE_PLAYER (BIRTH, op->contr); 886 INVOKE_PLAYER (BIRTH, op->contr);
887 INVOKE_PLAYER (LOGIN, op->contr); 887 INVOKE_PLAYER (LOGIN, op->contr);
3369 char buf[MAX_BUF]; /* tmp. string buffer */ 3369 char buf[MAX_BUF]; /* tmp. string buffer */
3370 int i = 0, j = 0; 3370 int i = 0, j = 0;
3371 3371
3372 /* get the appropriate treasurelist */ 3372 /* get the appropriate treasurelist */
3373 if (atnr == ATNR_FIRE) 3373 if (atnr == ATNR_FIRE)
3374 trlist = find_treasurelist ("dragon_ability_fire"); 3374 trlist = treasurelist::find ("dragon_ability_fire");
3375 else if (atnr == ATNR_COLD) 3375 else if (atnr == ATNR_COLD)
3376 trlist = find_treasurelist ("dragon_ability_cold"); 3376 trlist = treasurelist::find ("dragon_ability_cold");
3377 else if (atnr == ATNR_ELECTRICITY) 3377 else if (atnr == ATNR_ELECTRICITY)
3378 trlist = find_treasurelist ("dragon_ability_elec"); 3378 trlist = treasurelist::find ("dragon_ability_elec");
3379 else if (atnr == ATNR_POISON) 3379 else if (atnr == ATNR_POISON)
3380 trlist = find_treasurelist ("dragon_ability_poison"); 3380 trlist = treasurelist::find ("dragon_ability_poison");
3381 3381
3382 if (trlist == NULL || who->type != PLAYER) 3382 if (trlist == NULL || who->type != PLAYER)
3383 return; 3383 return;
3384 3384
3385 for (i = 0, tr = trlist->items; tr != NULL && i < level - 1; tr = tr->next, i++); 3385 for (i = 0, tr = trlist->items; tr != NULL && i < level - 1; tr = tr->next, i++);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines