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

Function flip_worm_segs_vertical

src/worm.c:967–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967void
968flip_worm_segs_vertical(struct monst *worm, int miny, int maxy)
969{
970 struct wseg *curr = wtails[worm->wormno];
971
972 while (curr) {
973 curr->wy = (maxy - curr->wy + miny);
974 curr = curr->nseg;
975 }
976}
977
978void
979flip_worm_segs_horizontal(struct monst *worm, int minx, int maxx)

Callers 1

flip_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected