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

Comparing deliantra/server/plugins/cfperl/cfperl.xs (file contents):
Revision 1.46 by root, Fri Mar 31 22:47:25 2006 UTC vs.
Revision 1.47 by root, Sun Apr 2 15:57:54 2006 UTC

246 object *obj = va_arg (args, object *); 246 object *obj = va_arg (args, object *);
247 247
248 if (!obj) 248 if (!obj)
249 sv = &PL_sv_undef; 249 sv = &PL_sv_undef;
250 else 250 else
251 switch (*(int *)cf_object_get_property (obj, CFAPI_OBJECT_PROP_TYPE)) 251 switch (obj->type)
252 { 252 {
253 case MAP: 253 case MAP:
254 sv = newSVptr_cached (obj, "cf::object::map"); 254 sv = newSVptr_cached (obj, "cf::object::map");
255 break; 255 break;
256 256
1575 1575
1576MODULE = cf PACKAGE = cf::object::player PREFIX = cf_player_ 1576MODULE = cf PACKAGE = cf::object::player PREFIX = cf_player_
1577 1577
1578player *player (object *op) 1578player *player (object *op)
1579 CODE: 1579 CODE:
1580 RETVAL = cf_player_find (cf_query_name (op)); 1580 RETVAL = op->contr;
1581 OUTPUT: RETVAL 1581 OUTPUT: RETVAL
1582 1582
1583void cf_player_message (object *obj, char *txt, int flags = NDI_ORANGE | NDI_UNIQUE) 1583void cf_player_message (object *obj, char *txt, int flags = NDI_ORANGE | NDI_UNIQUE)
1584 1584
1585object *cf_player_send_inventory (object *op) 1585object *cf_player_send_inventory (object *op)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines