From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog tcltk/tkcmd.c tcltk/tkinit.c ... Date: Wed, 11 Oct 2000 08:33:00 -0000 Message-id: <20001011153325.22084.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00512.html List-Id: CVSROOT: /cvs/xconq Module name: xconq Changes by: shebs@sourceware.cygnus.com 2000-10-11 08:33:25 Modified files: . : ChangeLog tcltk : tkcmd.c tkinit.c tkmain.c tkmap.c Log message: Modify tcl/tk interface command handling to test for unit ownership better and to allow enemy unit selection after game is over, also add grid display as overlay. * tkcmd.c (unit_still_ok, during_game_only, require_unit, require_own_unit_during_game): New functions, use everywhere instead of macros DURING_GAME_ONLY, REQUIRE_UNIT. (aux_add_terrain_2, etc): Use unit_still_ok, simplify control. * tkmain.c: Use side->id instead of side_number() everywhere. (tk_run_game_idle): Don't clear enemy unit selection if at end of game. (set_current_unit): Allow selection of any unit at end of game. * tkinit.c (grid_matches_unseen): New global. (set_optional_colors): Set grid_color and unseen_color from GDL globals. * tkmap.c (draw_area_background): Always use unseen color. (draw_terrain_grid): New function, draws grid as lines. (draw_map_overhead): Call it. (draw_unseen_fuzz): Set foreground and fill style explicitly. (draw_contours): Ditto, also line width.