This is the mail archive of the
xconq7@sourceware.cygnus.com
mailing list for the Xconq project.
Re: Can't give a town its independence
- To: shebs at shebs dot cnchost dot com
- Subject: Re: Can't give a town its independence
- From: Jim Kingdon <kingdon at redhat dot com>
- Date: Wed, 3 May 2000 22:38:14 -0400
- CC: xconq7 at sourceware dot cygnus dot com
- References: <200004281807.OAA27946@panix6.panix.com> <390A7759.3EF7A328@shebs.c\
<390AEEE0.245977EA@shebs.c\
nchost.com>
From: kingdon@panix.com
--text follows this line--
> So I would recommend messing with really_do_give_unit
Here you go. Let's at least get something checked in - a core dump is
quite bad if you haven't saved recently.
Index: tkcmd.c
===================================================================
RCS file: /cvs/xconq/xconq/tcltk/tkcmd.c,v
retrieving revision 1.29
diff -u -r1.29 tkcmd.c
--- tkcmd.c 2000/04/19 15:17:02 1.29
+++ tkcmd.c 2000/05/04 02:29:56
@@ -881,13 +881,15 @@
if (0 /* unit is a type that cannot act */) {
/* (should add case for nonacting units) */
} else {
- if (side2 != NULL)
- notify(dside, "You give %s to %s.", unit_handle(dside, unit),
- short_side_title(side2));
- else
- notify(dside, "You give %s its independence.",
- unit_handle(dside, unit));
- net_prep_change_side_action(unit, unit, side2);
+ if (side2 != NULL) {
+ notify(dside, "You give %s to %s.", unit_handle(dside, unit),
+ short_side_title(side2));
+ net_prep_change_side_action(unit, unit, side2);
+ } else {
+ notify(dside, "You give %s its independence.",
+ unit_handle(dside, unit));
+ net_prep_change_side_action(unit, unit, indepside);
+ }
}
}