[Freeciv-Dev] (PR#12950) Failed sanity check in latest cvs.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12950 >
Just give Acranes to Slovenians.
This is probably due to 12899:
--- freeciv/server/unithand.c 2005/04/30 17:09:30 1.332
+++ freeciv/server/unithand.c 2005/05/01 05:42:04 1.333
/**************************************************************************
+ Transfer a unit from one homecity to another.
+**************************************************************************/
+void real_unit_change_homecity(struct unit *punit, struct city *new_pcity)
+{
+ struct city *old_pcity = find_city_by_id(punit->homecity);
+
+ unit_list_prepend(new_pcity->units_supported, punit);
+ if (old_pcity) {
+ unit_list_unlink(old_pcity->units_supported, punit);
+ }
+
+ punit->homecity = new_pcity->id;
+ punit->owner = unit_owner(punit)->player_no;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shouldn't it be
punit->owner = city_owner(city)->player_no
?
--
mateusz
|
|