Fix xdump realm to dump player instead of absolute coordinates

Disclosed the true origin.  Broken in 45adbdb0, v4.3.0.
This commit is contained in:
Markus Armbruster 2008-08-23 15:40:41 -04:00
parent dda0a4c82f
commit 741a7e54bd
2 changed files with 6 additions and 6 deletions

View file

@ -75,8 +75,8 @@ struct realmstr {
natid r_cnum; /* country number */
/* end of part matching struct empobj */
unsigned short r_realm; /* realm number */
short r_xl, r_xh; /* horizontal bounds */
short r_yl, r_yh; /* vertical bounds */
coord r_xl, r_xh; /* horizontal bounds */
coord r_yl, r_yh; /* vertical bounds */
};
struct natstr {

View file

@ -600,10 +600,10 @@ struct castr realm_ca[] = {
EF_BAD, NSC_EXTRA},
{"cnum", fldoff(r_cnum), NSC_NATID, 0, NULL, EF_NATION, NSC_CONST},
{"realm", fldoff(r_realm), NSC_USHORT, 0, NULL, EF_BAD, NSC_CONST},
{"xl", fldoff(r_xl), NSC_SHORT, 0, NULL, EF_BAD, 0},
{"xh", fldoff(r_xh), NSC_SHORT, 0, NULL, EF_BAD, 0},
{"yl", fldoff(r_yl), NSC_SHORT, 0, NULL, EF_BAD, 0},
{"yh", fldoff(r_yh), NSC_SHORT, 0, NULL, EF_BAD, 0},
{"xl", fldoff(r_xl), NSC_XCOORD, 0, NULL, EF_BAD, 0},
{"xh", fldoff(r_xh), NSC_XCOORD, 0, NULL, EF_BAD, 0},
{"yl", fldoff(r_yl), NSC_YCOORD, 0, NULL, EF_BAD, 0},
{"yh", fldoff(r_yh), NSC_YCOORD, 0, NULL, EF_BAD, 0},
{NULL, 0, NSC_NOTYPE, 0, NULL, EF_BAD, 0}
#undef CURSTR
};