--- deliantra/server/common/los.C 2007/05/28 21:21:40 1.26 +++ deliantra/server/common/los.C 2007/06/03 17:42:39 1.27 @@ -250,14 +250,14 @@ */ void -clear_los (object *op) +clear_los (player *pl) { /* This is safer than using the ns->mapx, mapy because * we index the blocked_los as a 2 way array, so clearing * the first z spaces may not not cover the spaces we are * actually going to use */ - (void) memset ((void *) op->contr->blocked_los, 0, MAP_CLIENT_X * MAP_CLIENT_Y); + memset (pl->blocked_los, 0, MAP_CLIENT_X * MAP_CLIENT_Y); } /* @@ -460,7 +460,6 @@ * update_los() recalculates the array which specifies what is * visible for the given player-object. */ - void update_los (object *op) { @@ -469,7 +468,8 @@ if (QUERY_FLAG (op, FLAG_REMOVED)) return; - clear_los (op); + clear_los (op->contr); + if (QUERY_FLAG (op, FLAG_WIZ) /* ||XRAYS(op) */ ) return;