diff --git a/src/p_maputl.c b/src/p_maputl.c index 674aece11034f56285ed9233da270dec57e69b7d..e5db7efeb48ce8ac782739562f98218dfe9d556a 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -844,40 +844,6 @@ static void P_LinkToPrecipBlockMap(precipmobj_t *thing, precipmobj_t **bmap) } - - -static void P_LinkToPrecipBlockMap(precipmobj_t *thing, precipmobj_t **bmap) -{ - const INT32 blockx = (unsigned)(thing->x - bmaporgx) >> MAPBLOCKSHIFT; - const INT32 blocky = (unsigned)(thing->y - bmaporgy) >> MAPBLOCKSHIFT; - - if (blockx >= 0 && blockx < bmapwidth - && blocky >= 0 && blocky < bmapheight) - { - // killough 8/11/98: simpler scheme using - // pointer-to-pointer prev pointers -- - // allows head nodes to be treated like everything else - - precipmobj_t **link = &bmap[(blocky * bmapwidth) + blockx]; - precipmobj_t *bnext = *link; - - thing->bnext = bnext; - - if (bnext != NULL) - bnext->bprev = &thing->bnext; - - thing->bprev = link; - *link = thing; - } - else // thing is off the map - { - thing->bnext = NULL, thing->bprev = NULL; - } -} - - - - static void P_SetThingPositionWith(mobj_t *thing, subsector_t *(*func)(fixed_t x, fixed_t y)) { subsector_t *ss;