ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/map.C
(Generate patch)

Comparing deliantra/server/common/map.C (file contents):
Revision 1.31 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.32 by root, Thu Oct 5 16:50:06 2006 UTC

275 retval |= mp->spaces[newx + mp->width * newy].flags; 275 retval |= mp->spaces[newx + mp->width * newy].flags;
276 276
277 return retval; 277 return retval;
278} 278}
279 279
280
281/* 280/*
282 * Returns true if the given coordinate is blocked except by the 281 * Returns true if the given coordinate is blocked except by the
283 * object passed is not blocking. This is used with 282 * object passed is not blocking. This is used with
284 * multipart monsters - if we want to see if a 2x2 monster 283 * multipart monsters - if we want to see if a 2x2 monster
285 * can move 1 space to the left, we don't want its own area 284 * can move 1 space to the left, we don't want its own area
288 * monster. 287 * monster.
289 * m, x, y are the target map/coordinates - needed for map tiling. 288 * m, x, y are the target map/coordinates - needed for map tiling.
290 * the coordinates & map passed in should have been updated for tiling 289 * the coordinates & map passed in should have been updated for tiling
291 * by the caller. 290 * by the caller.
292 */ 291 */
293
294int 292int
295blocked_link (object *ob, maptile *m, int sx, int sy) 293blocked_link (object *ob, maptile *m, int sx, int sy)
296{ 294{
297 object *tmp; 295 object *tmp;
298 int mflags, blocked; 296 int mflags, blocked;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines