Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] (PR#6929) Transfering city with palace is possible! (BUG I
Home

[Freeciv-Dev] (PR#6929) Transfering city with palace is possible! (BUG I

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6929) Transfering city with palace is possible! (BUG IN 1.14.1-BETA4)
From: "mateusz stefek" <matusik_s@xxxxx>
Date: Sun, 23 Nov 2003 03:57:00 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6929 >

I managed to do that yesterday on pubserver(1.14.1-beta4)
I was negotiating city transfer, when I lost my capital and new palace was 
built in a city which I was giving. After [Turn done] server crashed (Probably 
an assert in sanitycheck:336)

Patch attached
--
mateusz

--- freeorig/server/diplhand.c  2003-02-27 23:56:04.000000000 +0100
+++ freeciv-1.14/server/diplhand.c      2003-11-23 12:55:39.000000000 +0100
@@ -253,6 +253,13 @@
                          pcity->name);
            goto cleanup;
          }
+         if (city_got_building(pcity,B_PALACE)) {
+           notify_player(other,
+                         _("Game: Your capital (%s) is requested, "
+                           "you can't accept treaty."),
+                         pcity->name);
+           goto cleanup;
+         }
          break;
        case CLAUSE_GOLD:
          if (other->economic.gold < pclause->value) {

[Prev in Thread] Current Thread [Next in Thread]