(valstr, nstr_exec, nstr_comp_val, nstr_exec_val, xdprval): Support
strings with length limit instead of zero termination. (ship_ca, land_ca): New selectors rflags, rpath. The latter is such a string.
This commit is contained in:
parent
66eaa28f92
commit
630e8e105a
4 changed files with 40 additions and 15 deletions
|
@ -153,7 +153,8 @@ struct castr ship_ca[] = {
|
|||
{NSC_XCOORD, NSC_DEITY, 0, fldoff(shpstr, shp_orig_x), "xbuilt"},
|
||||
{NSC_YCOORD, NSC_DEITY, 0, fldoff(shpstr, shp_orig_y), "ybuilt"},
|
||||
{NSC_NATID, NSC_DEITY, 0, fldoff(shpstr, shp_orig_own), "builder"},
|
||||
/* FIXME retreat stuff missing */
|
||||
{NSC_INT, 0, 0, fldoff(shpstr, shp_rflags), "rflags"},
|
||||
{NSC_STRINGY, 0, RET_LEN, fldoff(shpstr, shp_rpath), "rpath"},
|
||||
{NSC_NOTYPE, 0, 0, 0, NULL}
|
||||
};
|
||||
|
||||
|
@ -182,7 +183,8 @@ struct castr land_ca[] = {
|
|||
{NSC_SHORT, 0, 0, fldoff(lndstr, lnd_retreat), "retreat"},
|
||||
{NSC_UCHAR, 0, 0, fldoff(lndstr, lnd_fuel), "fuel"},
|
||||
{NSC_UCHAR, 0, 0, fldoff(lndstr, lnd_nxlight), "nxlight"},
|
||||
/* FIXME retreat stuff missing */
|
||||
{NSC_INT, 0, 0, fldoff(lndstr, lnd_rflags), "rflags"},
|
||||
{NSC_STRINGY, 0, RET_LEN, fldoff(lndstr, lnd_rpath), "rpath"},
|
||||
{NSC_UCHAR, 0, 0, fldoff(lndstr, lnd_rad_max), "react"},
|
||||
NSC_IVEC(fldoff(lndstr, lnd_item), ""),
|
||||
{NSC_USHORT, NSC_DEITY, 0, fldoff(lndstr, lnd_pstage), "pstage"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue