Fix designate's check for disallowed sector types

Bug lets mortals designate all sector types, including sanctuaries.
desi() complains, but then executes anyway.  Broken in commit
8227d8c8, v4.3.12.
This commit is contained in:
Markus Armbruster 2008-04-16 07:45:07 +02:00
parent 9272c47c9f
commit 66406bd240

View file

@ -89,8 +89,8 @@ desi(void)
continue; continue;
} }
if (dchr[des].d_cost < 0) { if (dchr[des].d_cost < 0) {
pr("Only %s can make a %s!\n", pr("Only %s can make a %s!\n", cname(0), dchr[des].d_name);
cname(0), dchr[des].d_name); continue;
} }
} }
if (sect.sct_type == des && sect.sct_newtype == des) if (sect.sct_type == des && sect.sct_newtype == des)