(do_desi): Zap efficiency only when sct_type really changes. Closes
#935750.
This commit is contained in:
parent
c6678f3899
commit
cca6abf934
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (sect.sct_effic < 5 || player->god) {
|
||||
if (sect.sct_type != des && (sect.sct_effic < 5 || player->god)) {
|
||||
sect.sct_type = des;
|
||||
sect.sct_effic = 0;
|
||||
changed += map_set(player->cnum, sect.sct_x, sect.sct_y,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue