/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2013, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
#include <config.h>
+#include "chance.h"
#include "commands.h"
-#include "treaty.h"
int
-enli(void)
+c_enlist(void)
{
struct nstr_sect nstr;
struct sctstr sect;
int newmil;
int milwant;
int totalmil;
- long reserve;
+ int reserve;
char *p;
int quota;
char prompt[128];
if (!snxtsct(&nstr, player->argp[1]))
return RET_SYN;
- if (!trechk(player->cnum, 0, TRTENL))
- return RET_FAIL;
natp = getnatp(player->cnum);
newmil = 500;
sprintf(prompt, "Number to enlist (max %d) : ", newmil);
}
}
pr("Total new enlistment : %d\n", totalmil);
- pr("Military reserves stand at %ld\n", reserve);
+ pr("Military reserves stand at %d\n", reserve);
if (totalmil) {
natp->nat_reserve -= totalmil;
putnat(natp);