| 3988 | }; |
| 3989 | |
| 3990 | staticfn const char * |
| 3991 | get_mkroom_name(int rtype) |
| 3992 | { |
| 3993 | int i; |
| 3994 | |
| 3995 | for (i = 0; room_types[i].name; i++) |
| 3996 | if (room_types[i].type == rtype) |
| 3997 | return room_types[i].name; |
| 3998 | |
| 3999 | impossible("get_mkroom_name unknown rtype %d", rtype); |
| 4000 | return "unknown"; /* not NULL */ |
| 4001 | } |
| 4002 | |
| 4003 | staticfn int |
| 4004 | get_table_roomtype_opt(lua_State *L, const char *name, int defval) |
no test coverage detected