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.411 by root, Mon Oct 29 23:37:35 2012 UTC vs.
Revision 1.412 by root, Mon Oct 29 23:54:06 2012 UTC

2711 2711
2712 if (!strcmp (name, BLANK_FACE_NAME )) blank_face = RETVAL; 2712 if (!strcmp (name, BLANK_FACE_NAME )) blank_face = RETVAL;
2713 if (!strcmp (name, EMPTY_FACE_NAME )) empty_face = RETVAL; 2713 if (!strcmp (name, EMPTY_FACE_NAME )) empty_face = RETVAL;
2714 if (!strcmp (name, MAGICMOUTH_FACE_NAME)) magicmouth_face = RETVAL; 2714 if (!strcmp (name, MAGICMOUTH_FACE_NAME)) magicmouth_face = RETVAL;
2715} 2715}
2716
2717faceidx faces_size ()
2718 CODE:
2719 RETVAL = faces.size ();
2716 OUTPUT: RETVAL 2720 OUTPUT: RETVAL
2717 2721
2718void set_type (faceidx idx, int value) 2722void set_type (faceidx idx, int value)
2719 ALIAS: 2723 ALIAS:
2720 set_type = 0 2724 set_type = 0
2820 OUTPUT: RETVAL 2824 OUTPUT: RETVAL
2821 2825
2822animidx set (utf8_string name, SV *frames, int facings = 1) 2826animidx set (utf8_string name, SV *frames, int facings = 1)
2823 CODE: 2827 CODE:
2824{ 2828{
2825 if (!SvROK (frames) && SvTYPE (SvRV (frames)) != SVt_PVAV) 2829 if (!SvROK (frames) && SvTYPE (SvRV (frames)) != SVt_PVAV)
2826 croak ("frames must be an arrayref"); 2830 croak ("frames must be an arrayref");
2827 2831
2828 AV *av = (AV *)SvRV (frames); 2832 AV *av = (AV *)SvRV (frames);
2829 2833
2830 animation *anim = &animation::find (name); 2834 animation *anim = &animation::find (name);
2831 if (anim->number) 2835 if (anim->number)
2832 { 2836 {
2833 anim->resize (av_len (av) + 1); 2837 anim->resize (av_len (av) + 1);
2834 anim->facings = facings; 2838 anim->facings = facings;
2835 } 2839 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines