… | |
… | |
2250 | pl->ob->stats.grace = pl->ob->stats.maxgrace; |
2250 | pl->ob->stats.grace = pl->ob->stats.maxgrace; |
2251 | pl->orig_stats = pl->ob->stats; |
2251 | pl->orig_stats = pl->ob->stats; |
2252 | |
2252 | |
2253 | void clear_los (player *pl) |
2253 | void clear_los (player *pl) |
2254 | |
2254 | |
|
|
2255 | void esrv_new_player (player *pl) |
|
|
2256 | |
2255 | bool |
2257 | bool |
2256 | cell_visible (player *pl, int dx, int dy) |
2258 | cell_visible (player *pl, int dx, int dy) |
2257 | CODE: |
2259 | CODE: |
2258 | RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 |
2260 | RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 |
2259 | && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; |
2261 | && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; |