(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:
parent
844b654d44
commit
f5e49a830c
5 changed files with 51 additions and 52 deletions
|
@ -118,7 +118,7 @@ do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
|
|||
if (!check_sect_ok(§))
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue