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

Function flip_dbridge_horizontal

src/sp_lev.c:427–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427staticfn void
428flip_dbridge_horizontal(struct rm *lev)
429{
430 if (IS_DRAWBRIDGE(lev->typ)) {
431 if ((lev->drawbridgemask & DB_DIR) == DB_WEST) {
432 lev->drawbridgemask &= ~DB_WEST;
433 lev->drawbridgemask |= DB_EAST;
434 } else if ((lev->drawbridgemask & DB_DIR) == DB_EAST) {
435 lev->drawbridgemask &= ~DB_EAST;
436 lev->drawbridgemask |= DB_WEST;
437 }
438 }
439}
440
441staticfn void
442flip_dbridge_vertical(struct rm *lev)

Callers 1

flip_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected