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

Comparing deliantra/server/server/plugins.c (file contents):
Revision 1.7 by root, Tue Mar 7 13:44:43 2006 UTC vs.
Revision 1.8 by root, Thu Mar 16 21:08:20 2006 UTC

1/* 1/*
2 * static char *rcsid_plugins_c = 2 * static char *rcsid_plugins_c =
3 * "$Id: plugins.c,v 1.7 2006/03/07 13:44:43 root Exp $"; 3 * "$Id: plugins.c,v 1.8 2006/03/16 21:08:20 root Exp $";
4 */ 4 */
5 5
6/*****************************************************************************/ 6/*****************************************************************************/
7/* CrossFire, A Multiplayer game for X-windows */ 7/* CrossFire, A Multiplayer game for X-windows */
8/* */ 8/* */
308 if (cp->gevent[eventcode] != NULL) 308 if (cp->gevent[eventcode] != NULL)
309 cp->gevent[eventcode](&rt, eventcode); 309 cp->gevent[eventcode](&rt, eventcode);
310 } 310 }
311 break; 311 break;
312 312
313 case EVENT_PLAYER_LOAD:
314 case EVENT_PLAYER_SAVE:
315 /* object, filename */
316 op = va_arg(args, object*);
317 buf = va_arg(args, char*);
318 for (cp = plugins_list; cp != NULL; cp = cp->next) {
319 if (cp->gevent[eventcode] != NULL)
320 cp->gevent[eventcode](&rt, eventcode, op, buf);
321 }
322 break;
323
313 case EVENT_MAPLOAD: 324 case EVENT_MAPLOAD:
314 case EVENT_MAPOUT: 325 case EVENT_MAPOUT:
315 case EVENT_MAPIN: 326 case EVENT_MAPIN:
316 case EVENT_MAPCLEAN: 327 case EVENT_MAPCLEAN:
317 /* map argument */ 328 /* map argument */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines