| 4736 | RESTORE_WARNING_UNREACHABLE_CODE |
| 4737 | |
| 4738 | staticfn void |
| 4739 | l_table_getset_feature_flag( |
| 4740 | lua_State *L, |
| 4741 | int x, int y, |
| 4742 | const char *name, |
| 4743 | int flag) |
| 4744 | { |
| 4745 | int val = get_table_boolean_opt(L, name, -2); |
| 4746 | |
| 4747 | if (val != -2) { |
| 4748 | if (val == -1) |
| 4749 | val = rn2(2); |
| 4750 | if (val) |
| 4751 | levl[x][y].flags |= flag; |
| 4752 | else |
| 4753 | levl[x][y].flags &= ~flag; |
| 4754 | } |
| 4755 | } |
| 4756 | |
| 4757 | /* guts of nhl_abs_coord; convert a coordinate relative to a map or room |
| 4758 | * into an absolute coordinate in svl.level.locations. |
no test coverage detected