Indented with src/scripts/indent-emp.

This commit is contained in:
Markus Armbruster 2003-09-02 20:48:48 +00:00
parent 5f263a7753
commit 9b7adfbecc
437 changed files with 52211 additions and 51052 deletions

View file

@ -42,24 +42,25 @@
int
orig(void)
{
struct sctstr sect;
s_char *p;
coord x, y;
s_char buf[1024];
struct natstr *np;
struct sctstr sect;
s_char *p;
coord x, y;
s_char buf[1024];
struct natstr *np;
if ((p = getstarg(player->argp[1], "New origin location : ", buf)) == 0) {
return RET_SYN;
}
if (!sarg_xy(p, &x, &y))
return RET_SYN;
if (!getsect(x, y, &sect))
return RET_SYN;
pr("Origin at %s (old system) is now at 0,0 (new system).\n",
xyas(sect.sct_x, sect.sct_y, player->cnum));
np = getnatp(player->cnum);
np->nat_xorg = sect.sct_x;
np->nat_yorg = sect.sct_y;
putnat(np);
return RET_OK;
if ((p =
getstarg(player->argp[1], "New origin location : ", buf)) == 0) {
return RET_SYN;
}
if (!sarg_xy(p, &x, &y))
return RET_SYN;
if (!getsect(x, y, &sect))
return RET_SYN;
pr("Origin at %s (old system) is now at 0,0 (new system).\n",
xyas(sect.sct_x, sect.sct_y, player->cnum));
np = getnatp(player->cnum);
np->nat_xorg = sect.sct_x;
np->nat_yorg = sect.sct_y;
putnat(np);
return RET_OK;
}