(sct_typematch): New. Use it instead of typematch() where

appropriate.
(typematch): Prefer exact match to partial match.  Use plain char
instead of s_char.
This commit is contained in:
Markus Armbruster 2004-02-27 19:53:02 +00:00
parent 844b654d44
commit f5e49a830c
5 changed files with 51 additions and 52 deletions

View file

@ -118,7 +118,7 @@ do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
if (!check_sect_ok(&sect))
continue;
des = typematch(p, EF_SECTOR);
des = sct_typematch(p);
if (des < 0 || (((des == SCT_BSPAN) || (des == SCT_BTOWER)) &&
!player->god)) {
pr("See \"info Sector-types\"\n");