]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/thre.c
Update copyright notice.
[empserver] / src / lib / commands / thre.c
index 429fb25e0f07225ab3787fb816997d17906f7e11..38119389af648bc8780873f5d0fe200995268336 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -88,8 +88,8 @@ thre(void)
        if (*p == '\0' || *p == '-')
            continue;
        thresh = atoi(p);
-       if (thresh > 10000)
-           thresh = 10000;
+       if (thresh > ITEM_MAX)
+           thresh = ITEM_MAX;
        if ((val > 0) && (val == thresh)) {
            pr("%s threshold unchanged (left at %d)\n",
               xyas(nstr.x, nstr.y, player->cnum), val);