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

Comparing deliantra/server/plugins/cfanim/cfanim.c (file contents):
Revision 1.3 by elmex, Wed Feb 22 18:53:55 2006 UTC vs.
Revision 1.5 by elmex, Sat Jul 15 11:57:02 2006 UTC

22/* GNU General Public License for more details. */ 22/* GNU General Public License for more details. */
23/* */ 23/* */
24/* You should have received a copy of the GNU General Public License */ 24/* You should have received a copy of the GNU General Public License */
25/* along with this program; if not, write to the Free Software */ 25/* along with this program; if not, write to the Free Software */
26/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 26/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
27/* */ /*****************************************************************************/ 27/* */
28/*****************************************************************************/
28 29
29/* First let's include the header file needed */ 30/* First let's include the header file needed */
30 31
31#include <cfanim.h> 32#include <cfanim.h>
32#include <stdarg.h> 33#include <stdarg.h>
1084 if (buf !=0) 1085 if (buf !=0)
1085 strcpy(context->message,buf); 1086 strcpy(context->message,buf);
1086 break; 1087 break;
1087 case EVENT_TELL: 1088 case EVENT_TELL:
1088 break; 1089 break;
1090 case EVENT_FIND_UNARMED_SKILL:
1091 context->who = va_arg(args, object*);
1092 break;
1093 case EVENT_PLAYER_USE_SKILL:
1094 case EVENT_MONSTER_USE_SKILL:
1095 context->activator = va_arg(args, object*);
1096 context->who = va_arg(args, object*);
1097 context->third = va_arg(args, object*);
1098 context->fix = va_arg(args, int);
1099
1100 buf = va_arg(args, char*);
1101 if (buf !=0)
1102 strncpy(context->message, buf, sizeof (context->message));
1103 break;
1089 } 1104 }
1090 va_end(args); 1105 va_end(args);
1091 context->returnvalue = 0; 1106 context->returnvalue = 0;
1092 1107
1093 pushContext(context); 1108 pushContext(context);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines