subs: Move shared code from navi.c to subs

Rename do_unit_move() to unit_move() to blend into unitsub.c.  Give
its helpers static linkage.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-01-05 13:12:38 +01:00
parent 520cfea05d
commit 198e2dd076
7 changed files with 289 additions and 299 deletions

View file

@ -35,8 +35,7 @@
#include <config.h>
#include "commands.h"
#include "file.h"
#include "empobj.h"
#include "unit.h"
int
march(void)
@ -53,5 +52,5 @@ march(void)
pr("No lands\n");
return RET_FAIL;
}
return do_unit_move(&land_list, &minmob, &maxmob);
return unit_move(&land_list, &minmob, &maxmob);
}