[Freeciv-Dev] Re: (PR#3521) Re: (PR#3601) Intelligence dialog empty
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 3 Mar 2003, Per I. Mathisen wrote:
> This fixes the symptom, and I think it can suffice for now:
Well, here is another and better fix. Attached. Kudos to Vasco for coming
up with the solution.
- Per
Index: common/player.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/player.c,v
retrieving revision 1.111
diff -u -r1.111 player.c
--- common/player.c 2003/02/12 22:22:33 1.111
+++ common/player.c 2003/03/04 01:08:35
@@ -98,6 +98,9 @@
plr->economic.science=PLAYER_DEFAULT_SCIENCE_RATE;
plr->economic.luxury=PLAYER_DEFAULT_LUXURY_RATE;
plr->research.changed_from = -1;
+ memset(plr->research.inventions, TECH_UNKNOWN,
+ sizeof(plr->research.inventions));
+ plr->research.inventions[A_NONE].state = TECH_KNOWN;
player_limit_to_government_rates(plr);
spaceship_init(&plr->spaceship);
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.293
diff -u -r1.293 packhand.c
--- client/packhand.c 2003/02/20 23:00:55 1.293
+++ client/packhand.c 2003/03/04 01:08:36
@@ -1309,9 +1309,7 @@
pplayer->is_connected = pinfo->is_connected;
- if (pplayer->is_connected) {
- read_player_info_techs(pplayer, pinfo->inventions);
- }
+ read_player_info_techs(pplayer, pinfo->inventions);
poptechup = (pplayer->research.researching!=pinfo->researching);
pplayer->research.bulbs_researched = pinfo->bulbs_researched;
- [Freeciv-Dev] Re: (PR#3521) Re: (PR#3601) Intelligence dialog empty,
Per I. Mathisen <=
[Freeciv-Dev] Re: (PR#3521) Re: (PR#3601) Intelligence dialog empty, Per I. Mathisen, 2003/03/04
|
|