(sect_ca, genitem_ca, ship_ca, plane_ca, land_ca, nuke_ca, treaty_ca,
loan_ca, news_ca, lost_ca, commodity_ca, trade_ca, nat_ca, map_ca): NSC_OFF was lost during Empire3, rendering the codes confusing and harder to use. Tack it back on. (encode, code_char): No need to fool around with NSC_OFF anymore.
This commit is contained in:
parent
d31f4f99cf
commit
dd01fcd4c6
3 changed files with 186 additions and 188 deletions
|
@ -167,7 +167,7 @@ encode(register s_char *str, long int *val, int type)
|
|||
i = stmtch(str, (caddr_t)cap, fldoff(castr, ca_name),
|
||||
sizeof(struct castr));
|
||||
if (i >= 0) {
|
||||
*val = cap[i].ca_code | NSC_OFF;
|
||||
*val = cap[i].ca_code;
|
||||
*val &= ~NSC_ROUND;
|
||||
return legal_val(str, *val);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue