/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* orig.c: Move your origin
- *
+ *
* Known contributors to this file:
* Shelley Louie, 1988
* Markus Armbruster, 2006
#include <config.h>
-#include "misc.h"
-#include "player.h"
-#include "sect.h"
-#include "xy.h"
-#include "nat.h"
-#include "file.h"
+#include <ctype.h>
#include "commands.h"
int
orig(void)
{
- s_char *p;
+ char *p;
coord x, y;
- s_char buf[1024];
- natid cnum;
+ char buf[1024];
+ int cnum;
struct natstr *np;
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
- if (!p)
+ if (!p || !*p)
return RET_SYN;
if (!isalpha(*p) && strchr(p, ',')) {
/* sector */