Can't give a town its independence
Jim Kingdon
kingdon@redhat.com
Wed May 3 19:38:00 GMT 2000
<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);
+ }
}
}
More information about the Xconq7
mailing list