From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog kernel/side.h kernel/side.c ... Date: Thu, 28 Dec 2000 08:04:00 -0000 Message-id: <20001228160409.12610.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00701.html List-Id: CVSROOT: /cvs/xconq Module name: xconq Changes by: shebs@sources.redhat.com 2000-12-28 08:04:09 Modified files: . : ChangeLog kernel : side.h side.c run.c unit.c plan.c mac : macunit.c macwins.c curses : ccmd.c tcltk : tkcmd.c Log message: Streamline handling of can-build testing, add cases for can-develop. * side.h (Side candevelop): New field. (side_can_develop): New macro. * side.c (create_side): Allocate candevelop. * run.c (update_canbuild_vector): Fill in candevelop vector too. * unit.c (unit_can_build_type): New function. * plan.c (plan_offense_support, plan_colonize_support, plan_explorer_support): Use it. * macunit.c (build_construction_menu): Ditto. * tkcmd.c (do_build): Ditto. * ccmd.c (do_build): Ditto. * tkcmd.c (do_fire, aux_fire_at): Rewrite to use same code for keyboard and menu select cases. (common_fire_at): New function. (do_fire_into, aux_fire_into, common_fire_into): Similarly. * macwins.c (adjust_construction_controls): Use could_create and could_develop.