Does typ match with levl[][].typ, considering special types MATCH_WALL and MAX_TYPE (aka transparency)? */
| 214 | /* Does typ match with levl[][].typ, considering special types |
| 215 | MATCH_WALL and MAX_TYPE (aka transparency)? */ |
| 216 | boolean |
| 217 | match_maptyps(xint16 typ, xint16 levltyp) |
| 218 | { |
| 219 | if ((typ == MATCH_WALL) && !IS_STWALL(levltyp)) |
| 220 | return FALSE; |
| 221 | if ((typ < MAX_TYPE) && (typ != levltyp)) |
| 222 | return FALSE; |
| 223 | return TRUE; |
| 224 | } |
| 225 | |
| 226 | struct mapfragment * |
| 227 | mapfrag_fromstr(char *str) |
no outgoing calls
no test coverage detected