(natstr): Members nat_xstart, nat_ystart are used write-only. Remove.
Users changed.
This commit is contained in:
parent
028a1bf3d8
commit
3db4e34ba4
4 changed files with 2 additions and 7 deletions
|
@ -67,7 +67,6 @@ struct natstr {
|
|||
char nat_hostaddr[32]; /* host addr of last user */
|
||||
char nat_hostname[512]; /* hostname of last user, may be empty */
|
||||
char nat_userid[32]; /* userid of last user, may be empty */
|
||||
coord nat_xstart, nat_ystart; /* cap location at start */
|
||||
coord nat_xcap, nat_ycap; /* cap location in abs coords */
|
||||
coord nat_xorg, nat_yorg; /* origin location in abs coords */
|
||||
s_char nat_dayno; /* day of the year mod 128 */
|
||||
|
|
|
@ -197,8 +197,6 @@ add(void)
|
|||
natp->nat_btu = 0;
|
||||
natp->nat_reserve = 0;
|
||||
natp->nat_tgms = 0;
|
||||
natp->nat_ystart = 0;
|
||||
natp->nat_xstart = 0;
|
||||
natp->nat_ycap = 0;
|
||||
natp->nat_xcap = 0;
|
||||
natp->nat_yorg = 0;
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
* Dave Pare, 1986
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "nat.h"
|
||||
|
@ -180,8 +182,6 @@ new(void)
|
|||
natp->nat_btu = max_btus;
|
||||
natp->nat_stat &= ~STAT_NEW;
|
||||
natp->nat_stat |= STAT_SANCT;
|
||||
natp->nat_xstart = x;
|
||||
natp->nat_ystart = y;
|
||||
natp->nat_xcap = x;
|
||||
natp->nat_ycap = y;
|
||||
natp->nat_xorg = x;
|
||||
|
|
|
@ -491,8 +491,6 @@ struct castr nat_ca[] = {
|
|||
{NSC_STRINGY, 0, 32, fldoff(natstr, nat_hostaddr), "ip", EF_BAD},
|
||||
{NSC_STRINGY, 0, 512, fldoff(natstr, nat_hostname), "hostname", EF_BAD},
|
||||
{NSC_STRINGY, 0, 32, fldoff(natstr, nat_userid), "userid", EF_BAD},
|
||||
{NSC_XCOORD, 0, 0, fldoff(natstr, nat_xstart), "xstart", EF_BAD},
|
||||
{NSC_YCOORD, 0, 0, fldoff(natstr, nat_ystart), "ystart", EF_BAD},
|
||||
{NSC_XCOORD, 0, 0, fldoff(natstr, nat_xcap), "xcap", EF_BAD},
|
||||
{NSC_YCOORD, 0, 0, fldoff(natstr, nat_ycap), "ycap", EF_BAD},
|
||||
{NSC_XCOORD, NSC_DEITY, 0, fldoff(natstr, nat_xorg), "xorg", EF_BAD},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue