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

Function sel_set_feature

src/sp_lev.c:4632–4644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4630}
4631
4632staticfn void
4633sel_set_feature(coordxy x, coordxy y, genericptr_t arg)
4634{
4635 if (!isok(x, y)) {
4636#ifdef EXTRA_SANITY_CHECKS
4637 impossible("sel_set_feature(%i,%i,%i) !isok", x, y, (*(int *) arg));
4638#endif /*EXTRA_SANITY_CHECKS*/
4639 return;
4640 }
4641 if (IS_FURNITURE(levl[x][y].typ))
4642 return;
4643 levl[x][y].typ = (*(int *) arg);
4644}
4645
4646staticfn void
4647sel_set_door(coordxy dx, coordxy dy, genericptr_t arg)

Callers 1

lspo_featureFunction · 0.85

Calls 2

isokFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected