remove and transfer INVISIBLE_OBJECTS to branch

This commit is contained in:
Derek S. Ray
2015-02-17 13:58:27 -05:00
committed by Sean Hunt
parent 5ee52039ca
commit 4dddb97301
15 changed files with 12 additions and 133 deletions

View File

@@ -139,30 +139,6 @@ STATIC_DCL int FDECL(wall_angle, (struct rm *));
#define remember_topology(x,y) (lastseentyp[x][y] = levl[x][y].typ)
#ifdef INVISIBLE_OBJECTS
/*
* vobj_at()
*
* Returns a pointer to an object if the hero can see an object at the
* given location. This takes care of invisible objects. NOTE, this
* assumes that the hero is not blind and on top of the object pile.
* It does NOT take into account that the location is out of sight, or,
* say, one can see blessed, etc.
*/
struct obj *
vobj_at(x,y)
xchar x,y;
{
register struct obj *obj = level.objects[x][y];
while (obj) {
if (!obj->oinvis || See_invisible) return obj;
obj = obj->nexthere;
}
return ((struct obj *) 0);
}
#endif /* else vobj_at() is defined in display.h */
/*
* magic_map_background()
*