(xdvisible): Fix the nuke-chr case to work for deities.
This commit is contained in:
parent
036a623a40
commit
847bf6901c
1 changed files with 5 additions and 4 deletions
|
@ -239,12 +239,13 @@ xdvisible(int type, void *p)
|
||||||
return player->god || tlev <= (int)(1.25 * natp->nat_level[NAT_TLEV]);
|
return player->god || tlev <= (int)(1.25 * natp->nat_level[NAT_TLEV]);
|
||||||
case EF_NUKE_CHR:
|
case EF_NUKE_CHR:
|
||||||
tlev = ((struct nchrstr *)p)->n_tech;
|
tlev = ((struct nchrstr *)p)->n_tech;
|
||||||
natp = getnatp(player->cnum);
|
if (opt_DRNUKE) {
|
||||||
if (opt_DRNUKE)
|
natp = getnatp(player->cnum);
|
||||||
if (tlev > (int)((int)(1.25 * natp->nat_level[NAT_RLEV])
|
if (tlev > (int)((int)(1.25 * natp->nat_level[NAT_RLEV])
|
||||||
/ drnuke_const))
|
/ drnuke_const))
|
||||||
return 0;
|
return player->god;
|
||||||
return tlev <= (int)(1.25 * natp->nat_level[NAT_TLEV]);
|
}
|
||||||
|
goto tech;
|
||||||
case EF_NEWS_CHR:
|
case EF_NEWS_CHR:
|
||||||
return ((struct rptstr *)p)->r_newspage != 0;
|
return ((struct rptstr *)p)->r_newspage != 0;
|
||||||
case EF_TABLE:
|
case EF_TABLE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue