[Freeciv-Dev] (PR#13298) change tech when goal is changed
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13298) change tech when goal is changed |
From: |
"Thomas Müller" <lists@xxxxxxxxxxx> |
Date: |
Mon, 20 Jun 2005 15:14:06 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13298 >
Currently, when you have Tech NONE and select a goal, at the end of the turn,
server will choose a random tech for you, and you research something, you
probably dont need.
I think, if there is no tech selected at the moment, and you select a goal,
you want to reach that goal now, and the server should select a tech for you,
that leads to your goal.
This way you see, what you're researching, and you prevent useless research.
If you select a goal, you often dont even know, what you have to research
first to get to that goal.
Of course, if there is already a tech selected, and you select a goal, the
current tech should be researched to its end, the change only applies, when
current tech is NONE.
I wrote a patch for cvs that does that...
--- orig.plrhand.c 2005-05-30 22:03:41.000000000 +0200
+++ plrhand.c 2005-05-30 22:06:26.000000000 +0200
@@ -641,6 +641,9 @@
notify_player(plr, _("Technology goal is %s."),
get_tech_name(plr, tech));
plr->research->tech_goal = tech;
+ if (plr->research->researching == A_UNSET) {
+ choose_goal_tech(plr);
+ }
}
/**************************************************************************
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13298) change tech when goal is changed,
Thomas Müller <=
|
|