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.309 by root, Thu Dec 4 03:48:19 2008 UTC vs.
Revision 1.310 by root, Fri Dec 19 22:47:30 2008 UTC

1600 1600
1601void init_attackmess () 1601void init_attackmess ()
1602 1602
1603void init_dynamic () 1603void init_dynamic ()
1604 1604
1605void init_block ()
1606
1607void load_settings () 1605void load_settings ()
1608 1606
1609void load_materials () 1607void load_materials ()
1610 1608
1611void init_uuid () 1609void init_uuid ()
2255void clear_los (player *pl) 2253void clear_los (player *pl)
2256 2254
2257# should only be temporary 2255# should only be temporary
2258void esrv_new_player (player *pl) 2256void esrv_new_player (player *pl)
2259 2257
2258#d# TODO: replace by blocked_los accessor, fix code using this
2260bool 2259bool
2261cell_visible (player *pl, int dx, int dy) 2260cell_visible (player *pl, int dx, int dy)
2262 CODE: 2261 CODE:
2263 RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 2262 RETVAL = pl->blocked_los (dx, dy) != LOS_BLOCKED;
2264 && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2];
2265 OUTPUT: 2263 OUTPUT:
2266 RETVAL 2264 RETVAL
2267 2265
2268void 2266void
2269send (player *pl, SV *packet) 2267send (player *pl, SV *packet)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines