Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > I wonder whether it is sensible to allow a player ending up with
> > negative points in the technology being researched. This may occur
> > when a penalty due to diplomacy/free_tech/conquest_of_city is subtracted
> > from the player's current research points
>
> I believe this problem has been fixed.
Nope! I've downloaded and compiled (without too much hassle although
on Solaris!) the Nov.30th version and the problem still exists.
Anyway, i fixed it - what is really needed is to modify
do_dipl_cost, do_free_cost, and do_conquer_cost
in server/plrhand.c as follows:
void do_dipl_cost(struct player *pplayer)
{
int penalty=(research_time(pplayer)*game.diplcost)/100;
if (penalty < pplayer->research.researched)
pplayer->research.researched -= penalty;
else
pplayer->research.researched=0;
}
void do_free_cost(struct player *pplayer)
{
int penalty=(research_time(pplayer)*game.freecost)/100;
if (penalty < pplayer->research.researched)
pplayer->research.researched -= penalty;
else
pplayer->research.researched=0;
}
void do_conquer_cost(struct player *pplayer)
{
int penalty=(research_time(pplayer)*game.conquercost)/100;
if (penalty < pplayer->research.researched)
pplayer->research.researched -= penalty;
else
pplayer->research.researched=0;
}
>
> > On some occasions, when a diplomat reaches a city and the popup menu
> > appears and a selection is made, there is no action after that (meaning
> > that nothing occurs and no message appears explaining why).
>
> I suspect this problem has been fixed as well.
>
i'm not sure - it seems to me that it occurred again... but have to check
that further...
--rizos
- [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Rizos Sakellariou, 1998/12/01
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Mitch Davis, 1998/12/01
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Rizos Sakellariou, 1998/12/01
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Andrew E. Schulman, 1998/12/02
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names.,
Rizos Sakellariou <=
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., David Pfitzner, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Rizos Sakellariou, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., David Pfitzner, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Trent Piepho, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., John Goerzen, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Mitch Davis, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Tony &, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., David Pfitzner, 1998/12/03
- [Freeciv-Dev] diplcost (was: Some remarks (bugs?) and an update of greek city names), Reinier Post, 1998/12/03
- Re: [Freeciv-Dev] Some remarks (bugs?) and an update of greek city names., Mitch Davis, 1998/12/03
|
|