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.20 by root, Tue Sep 12 17:54:41 2006 UTC vs.
Revision 1.21 by root, Tue Sep 12 19:20:08 2006 UTC

279 p->peaceful = 1; /* default peaceful */ 279 p->peaceful = 1; /* default peaceful */
280 p->do_los = 1; 280 p->do_los = 1;
281 p->explore = 0; 281 p->explore = 0;
282 p->no_shout = 0; /* default can shout */ 282 p->no_shout = 0; /* default can shout */
283 283
284 strncpy (p->title, op->arch->clone.name, sizeof (p->title) - 1); 284 assign (p->title, op->arch->clone.name);
285 p->title[sizeof (p->title) - 1] = '\0';
286 op->race = op->arch->clone.race; 285 op->race = op->arch->clone.race;
287 286
288 CLEAR_FLAG (op, FLAG_READY_SKILL); 287 CLEAR_FLAG (op, FLAG_READY_SKILL);
289 288
290 /* we need to clear these to -1 and not zero - otherwise, 289 /* we need to clear these to -1 and not zero - otherwise,
1134 op->name = op->name_pl = name; 1133 op->name = op->name_pl = name;
1135 op->x = x; 1134 op->x = x;
1136 op->y = y; 1135 op->y = y;
1137 SET_ANIMATION (op, 2); /* So player faces south */ 1136 SET_ANIMATION (op, 2); /* So player faces south */
1138 insert_ob_in_map (op, op->map, op, 0); 1137 insert_ob_in_map (op, op->map, op, 0);
1139 strncpy (op->contr->title, op->arch->clone.name, sizeof (op->contr->title) - 1); 1138 assign (op->contr->title, op->arch->clone.name);
1140 op->contr->title[sizeof (op->contr->title) - 1] = '\0';
1141 add_statbonus (op); 1139 add_statbonus (op);
1142 tmp_loop = allowed_class (op); 1140 tmp_loop = allowed_class (op);
1143 } 1141 }
1144 1142
1145 update_object (op, UP_OBJ_FACE); 1143 update_object (op, UP_OBJ_FACE);
1146 esrv_update_item (UPD_FACE, op, op); 1144 esrv_update_item (UPD_FACE, op, op);
1147 fix_player (op); 1145 fix_player (op);
1148 op->stats.hp = op->stats.maxhp; 1146 op->stats.hp = op->stats.maxhp;
1149 op->stats.sp = op->stats.maxsp; 1147 op->stats.sp = op->stats.maxsp;
1150 op->stats.grace = 0; 1148 op->stats.grace = 0;
1149
1151 if (op->msg) 1150 if (op->msg)
1152 new_draw_info (NDI_BLUE, 0, op, op->msg); 1151 new_draw_info (NDI_BLUE, 0, op, op->msg);
1152
1153 send_query (&op->contr->socket, CS_QUERY_SINGLECHAR, "Press any key for the next race.\nPress `d' to play this race.\n"); 1153 send_query (&op->contr->socket, CS_QUERY_SINGLECHAR, "Press any key for the next race.\nPress `d' to play this race.\n");
1154 return 0; 1154 return 0;
1155} 1155}
1156 1156
1157int 1157int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines