(put_empobj): New. Put generic empobj into the appropriate data file.

(get_empobj_chr): New.  Get characteristics for empobj.
(mission, build_mission_list_type): Switch to use new
functions put_empobj() and get_empobj_chr().
This commit is contained in:
Ron Koenderink 2006-07-20 14:12:35 +00:00
parent 8e7199c338
commit a62989d4a3
4 changed files with 50 additions and 22 deletions

View file

@ -333,17 +333,7 @@ mission(void)
gp->mission = mission;
gp->opx = x;
gp->opy = y;
switch (type) {
case EF_SHIP:
putship(gp->uid, &item.ship);
break;
case EF_LAND:
putland(gp->uid, &item.land);
break;
case EF_PLANE:
putplane(gp->uid, &item.plane);
break;
}
put_empobj(gp);
}
if (num == 0) {
pr("No %s%s\n", ef_nameof(type), splur(num));