[Freeciv-Dev] Re: [PATCH] Re: All cities have trade of 0 (PR#1070)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > > +void move_palace(struct player *pplayer, struct city *pfrom)
> > > +{
> > > + int size;
> > > + struct city *pnewcity;
> > > +
> > > + size = city_list_size(&pplayer->cities);
> >
> > > + if (size <= 1)
> > > + return; /* we can't choose from anything */
> >
> > Can this function called after the player looses its city? Then we can
> > assert that we have at least one city which have to get the palace.
> Yes, we can.
Hmm, looks like you wait for the patch with assertion included :-).
Here it goes.
--
Petr "Pasky" Baudis
UN*X programmer, UN*X administrator, hobbies = IPv6, IRC
Real Users hate Real Programmers.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/
savepalace.diff
Description: Text document
|
|