[Freeciv-Dev] Re: (PR#18113) caravan with no homecity crashes server
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18113 >
On Mon, Jun 26, 2006 at 03:23:30PM -0700, Egor Vyscrebentsov wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=18113 >
>
> Good daytime!
>
> If one load a .sav file which contain caravan with no homecity, server
> will crash next turn. Problem is that aicore caravan code assume that
> caravan always has homecity, and server does not check for this when
> load a game. Also, it seems to me that editor allows to create caravan
> without homecity.
> I'm not sure who own this bug: server, editor, or both.
I would say this is a editor bug primarily, but annoying enough to fix via
the fixing the editor that I would say a server bug.
> There are several ways to fix this behavior, so I want to listen which
> is better [before try to make a patch]:
> 1. Disallow caravans with no homecity, reject a game if it has them.
> 2. Allow caravan with no homecity to change it once. Until changing
> caravan could not provide caravan bonuses/help building wonders.
> 3. Something else? (Removing caravans totally is not a way for me.)
choose option 1. Change the game loading code to find the nearest owned
city and change the homecity to that and spit out a LOG_VERBOSE/LOG_ERROR
message that the loading code is doing such a thing.
-mike
- [Freeciv-Dev] Re: (PR#18113) caravan with no homecity crashes server,
Mike Kaufman <=
|
|