MCPcopy Create free account
hub / github.com/NetHack/NetHack / sel_set_wall_property

Function sel_set_wall_property

src/sp_lev.c:985–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983
984
985staticfn void
986sel_set_wall_property(coordxy x, coordxy y, genericptr_t arg)
987{
988 int prop = *(int *) arg;
989
990 if (IS_STWALL(levl[x][y].typ) || IS_TREE(levl[x][y].typ)
991 /* 3.6.2: made iron bars eligible to be flagged nondiggable
992 (checked by chewing(hack.c) and zap_over_floor(zap.c)) */
993 || levl[x][y].typ == IRONBARS)
994 levl[x][y].wall_info |= prop;
995}
996
997/*
998 * Make walls of the area (x1, y1, x2, y2) non diggable/non passwall-able

Callers 1

set_wall_propertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected