/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2011, 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
* Thomas Ruschak
* Ken Stevens, 1995 (rewrite)
* Ron Koenderink, 2006-2007
+ * Markus Armbruster, 2006-2015
*/
#include <config.h>
#include "commands.h"
-#include "file.h"
-#include "empobj.h"
+#include "unit.h"
int
-march(void)
+c_march(void)
{
struct nstr_item ni_land;
struct emp_qelem land_list;
- double minmob, maxmob;
- int together;
if (!snxtitem(&ni_land, EF_LAND, player->argp[1], NULL))
return RET_SYN;
lnd_sel(&ni_land, &land_list);
- lnd_mar(&land_list, &minmob, &maxmob, &together, player->cnum);
if (QEMPTY(&land_list)) {
pr("No lands\n");
return RET_FAIL;
}
- return do_unit_move(&land_list, &together, &minmob, &maxmob);
+ return unit_move(&land_list);
}