]> git.pond.sub.org Git - empserver/commitdiff
Fix origin and zdone for invalid country argument
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 18 Jul 2008 22:34:17 +0000 (18:34 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Jul 2008 12:13:40 +0000 (08:13 -0400)
Invalid country argument was interpreted as (natid)-1, which is
normally 255.  Harmless as long as this is less than MAXNOC (99).
Wrong anyway.

src/lib/commands/orig.c
src/lib/commands/zdon.c

index d8c91f760e9ef2360f24915ad743b2eaeb05c9a5..120bb823ebd5b418915ceeb0215cd00c935feabc 100644 (file)
@@ -43,7 +43,7 @@ orig(void)
     char *p;
     coord x, y;
     char buf[1024];
-    natid cnum;
+    int cnum;
     struct natstr *np;
 
     p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
index 577a2887617ea2c4b91c97ec738f32272363de52..c439f8d8e2c48d697e00618c5defc1c5bed9cfcf 100644 (file)
@@ -59,7 +59,7 @@
 int
 zdon(void)
 {
-    natid whichcnum;
+    int whichcnum;
     struct natstr *natp;
     char *p;