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

Function set_wall_property

src/sp_lev.c:1000–1013  ·  view source on GitHub ↗

* Make walls of the area (x1, y1, x2, y2) non diggable/non passwall-able */

Source from the content-addressed store, hash-verified

998 * Make walls of the area (x1, y1, x2, y2) non diggable/non passwall-able
999 */
1000staticfn void
1001set_wall_property(coordxy x1, coordxy y1, coordxy x2, coordxy y2, int prop)
1002{
1003 coordxy x, y;
1004
1005 x1 = max(x1, 1);
1006 x2 = min(x2, COLNO - 1);
1007 y1 = max(y1, 0);
1008 y2 = min(y2, ROWNO - 1);
1009 for (y = y1; y <= y2; y++)
1010 for (x = x1; x <= x2; x++) {
1011 sel_set_wall_property(x, y, (genericptr_t) &prop);
1012 }
1013}
1014
1015staticfn void
1016remove_boundary_syms(void)

Callers 1

lspo_wall_propertyFunction · 0.85

Calls 1

sel_set_wall_propertyFunction · 0.85

Tested by

no test coverage detected