(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

@ -61,7 +61,7 @@ shar(void)
return RET_SYN;
if (player->argp[3] && *player->argp[3]) {
if (typematch(player->argp[3], EF_SECTOR) < 0)
if (sct_typematch(player->argp[3]) < 0)
return RET_SYN;
else
des = *player->argp[3];