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:
parent
9272c47c9f
commit
66406bd240
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue