Re: [Freeciv-Dev] huts become cities without rail (PR#102)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--=====================_46531329==_
Content-Type: text/plain; charset="us-ascii"
>If you enter a Hut, and it decides to found a new
>city, it automatically upgrades its square to a
>road. But if you have the Railroad technology, it
>does not automatically upgrade to railroad.
Here's a simple patch to fix this.
--=====================_46531329==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="pr102-huts-to-cities-no-rail.diff"
diff -ruN -X /home/jjm/cvs/no.freeciv FreecivCVS/server/unithand.c
freeciv/server/unithand.c
--- FreecivCVS/server/unithand.c Sun Aug 8 09:14:25 1999
+++ freeciv/server/unithand.c Mon Aug 9 15:08:33 1999
@@ -697,6 +697,8 @@
case 11:
if (is_ok_city_spot(punit->x, punit->y)) {
map_set_special(punit->x, punit->y, S_ROAD);
+ if (get_invention(pplayer, A_RAILROAD)==TECH_KNOWN)
+ map_set_special(punit->x, punit->y, S_RAILROAD);
send_tile_info(0, punit->x, punit->y, TILE_KNOWN);
create_city(pplayer, punit->x, punit->y, city_name_suggestion(pplayer));
--=====================_46531329==_
Content-Type: text/plain; charset="us-ascii"
jjm
--=====================_46531329==_--
|
|