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/combat.c kernel/iplay ... Date: Sat, 08 Jul 2000 05:20:00 -0000 Message-id: <20000708122038.12077.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00311.html List-Id: CVSROOT: /cvs/xconq Module name: xconq Changes by: shebs@sourceware.cygnus.com 2000-07-08 05:20:37 Modified files: . : ChangeLog kernel : combat.c iplayer.c mplayer.c plan.c task.c ui.c tcltk : tkmain.c tkmap.c Log message: * combat.c: Tweak formatting. * plan.c (victim_here): Loop over unit views, comment out test of unit size since it looks at unit directly. (victim_x, victim_y, victim_rating, etc): Rename from victimx etc. (target_here): Loop over unit views. (target_x, target_y, target_rating, etc): Rename from targetx etc. * iplayer.c (iplayer_go_after_victim, iplayer_fire_at_opportunity, enemy_close_by): Declare victim_rating etc in scope of functions. * mplayer.c: Ditto. * task.c (do_hit_unit_task): Add notes about views. * ui.c (find_unit_or_occ_view, find_unit_view_at, nearest_unit_view): New functions. (oneliner): Call nearest_unit_view, test for unit views instead of units_visible. (dump_text_view): Similarly. * tkmain.c (update_mouseover): Use unit views to decide whether cursor is over an attackable unit. * tkmap.c (draw_units): Almost always use unit views (exception is vp->show_all).