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

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.257 by root, Sun Sep 30 16:24:31 2007 UTC vs.
Revision 1.258 by root, Sun Sep 30 20:22:24 2007 UTC

1262 const_iv (Map0Cmd) const_iv (Map1Cmd) const_iv (Map1aCmd) 1262 const_iv (Map0Cmd) const_iv (Map1Cmd) const_iv (Map1aCmd)
1263 1263
1264 const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y) 1264 const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y)
1265 1265
1266 const_iv (MAX_TIME) 1266 const_iv (MAX_TIME)
1267 const_iv (MAXSOCKBUF)
1267 1268
1268 const_iv (NUM_BODY_LOCATIONS) 1269 const_iv (NUM_BODY_LOCATIONS)
1269 const_iv (body_range) const_iv (body_shield) const_iv (body_combat) 1270 const_iv (body_range) const_iv (body_shield) const_iv (body_combat)
1270 const_iv (body_arm) const_iv (body_torso) const_iv (body_head) 1271 const_iv (body_arm) const_iv (body_torso) const_iv (body_head)
1271 const_iv (body_neck) const_iv (body_skill) const_iv (body_finger) 1272 const_iv (body_neck) const_iv (body_skill) const_iv (body_finger)
1416 const_iv (P_NO_CLERIC) const_iv (P_OUT_OF_MAP) const_iv (P_NEW_MAP) const_iv (P_UPTODATE) 1417 const_iv (P_NO_CLERIC) const_iv (P_OUT_OF_MAP) const_iv (P_NEW_MAP) const_iv (P_UPTODATE)
1417 1418
1418 const_iv (UP_OBJ_INSERT) const_iv (UP_OBJ_REMOVE) const_iv (UP_OBJ_CHANGE) const_iv (UP_OBJ_FACE) 1419 const_iv (UP_OBJ_INSERT) const_iv (UP_OBJ_REMOVE) const_iv (UP_OBJ_CHANGE) const_iv (UP_OBJ_FACE)
1419 1420
1420 const_iv (INS_NO_MERGE) const_iv (INS_ABOVE_FLOOR_ONLY) const_iv (INS_NO_WALK_ON) 1421 const_iv (INS_NO_MERGE) const_iv (INS_ABOVE_FLOOR_ONLY) const_iv (INS_NO_WALK_ON)
1421 const_iv (INS_ON_TOP) const_iv (INS_BELOW_ORIGINATOR) const_iv (INS_MAP_LOAD) 1422 const_iv (INS_ON_TOP) const_iv (INS_BELOW_ORIGINATOR)
1422 1423
1423 const_iv (WILL_APPLY_HANDLE) const_iv (WILL_APPLY_TREASURE) const_iv (WILL_APPLY_EARTHWALL) 1424 const_iv (WILL_APPLY_HANDLE) const_iv (WILL_APPLY_TREASURE) const_iv (WILL_APPLY_EARTHWALL)
1424 const_iv (WILL_APPLY_DOOR) const_iv (WILL_APPLY_FOOD) 1425 const_iv (WILL_APPLY_DOOR) const_iv (WILL_APPLY_FOOD)
1425 1426
1426 const_iv (SAVE_MODE) const_iv (SAVE_DIR_MODE) 1427 const_iv (SAVE_MODE) const_iv (SAVE_DIR_MODE)
2117 CODE: 2118 CODE:
2118{ 2119{
2119 STRLEN len; 2120 STRLEN len;
2120 char *buf = SvPVbyte (packet, len); 2121 char *buf = SvPVbyte (packet, len);
2121 2122
2123 if (len > MAXSOCKBUF)
2124 pl->failmsg ("[packet too long for client]");
2122 if (pl->ns) 2125 else if (pl->ns)
2123 pl->ns->send_packet (buf, len); 2126 pl->ns->send_packet (buf, len);
2124} 2127}
2125 2128
2126int 2129int
2127listening (player *pl, int new_value = -1) 2130listening (player *pl, int new_value = -1)
2579 CODE: 2582 CODE:
2580{ 2583{
2581 STRLEN len; 2584 STRLEN len;
2582 char *buf = SvPVbyte (packet, len); 2585 char *buf = SvPVbyte (packet, len);
2583 2586
2587 if (len > MAXSOCKBUF)
2588 {
2589 // ugly
2590 if (THIS->pl)
2591 THIS->pl->failmsg ("[packet too long for client]");
2592 }
2593 else
2584 THIS->send_packet (buf, len); 2594 THIS->send_packet (buf, len);
2585} 2595}
2586 2596
2587faceidx 2597faceidx
2588client::need_face (utf8_string name, int pri = 0) 2598client::need_face (utf8_string name, int pri = 0)
2589 CODE: 2599 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines