[Freeciv-Dev] Wonder obsolesence across games (PR#1434)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Full_Name: Daniel Speyer
Version: latest CVS
Distribution: Built from source
Client: Both (or N/A)
OS: Debian GNU/Linux
Submission from: (NULL) (129.2.159.61)
If you start a game, build Sun Tzu's War Academy, end the game, and start a new
game using the same client, you will be unable to build barracks. Other
wonders/improvements are presumably similar.
This is because the game.players[0].improvements array is not innitialized for
each game. Probably the best solution is to put
for(i=0; i<B_LAST; i++){
game.players[0].improvements[i]=I_NONE;
}
into the game connection routines, probably in try_to_connect
(freeciv/client/clinet.c). It's a little ugly there, but it works. I haven't
found another place to put it that works cross-gui.
I'd make a patch, but my clinet.c is pretty modified, and I'm still not sure
where in the function is least aesthetically offensive.
- [Freeciv-Dev] Wonder obsolesence across games (PR#1434),
dspeyer <=
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Raimar Falke, 2002/05/10
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Raimar Falke, 2002/05/15
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Mike Kaufman, 2002/05/15
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Raimar Falke, 2002/05/15
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Mike Kaufman, 2002/05/15
- [Freeciv-Dev] Re: Wonder obsolesence across games (PR#1434), Raimar Falke, 2002/05/16
|
|