Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6535) gui-gtk compile error
Home

[Freeciv-Dev] Re: (PR#6535) gui-gtk compile error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6535) gui-gtk compile error
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Oct 2003 16:26:48 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:
> if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include 
> -I../../common -I../../common/aicore -I../../intl -I./../agents 
> -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 
> -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include    -g -O -Wall -Werror -Wcast-align 
> -Wmissing-prototypes -Wmissing-declarations -MT wldlg.o -MD -MP -MF 
> ".deps/wldlg.Tpo" \
>    -c -o wldlg.o `test -f 'wldlg.c' || echo './'`wldlg.c; \
> then mv -f ".deps/wldlg.Tpo" ".deps/wldlg.Po"; \
> else rm -f ".deps/wldlg.Tpo"; exit 1; \
> fi
> repodlgs.c: In function `economy_selloff_callback':
> repodlgs.c:729: `packet' undeclared (first use in this function)
> repodlgs.c:729: (Each undeclared identifier is reported only once
> repodlgs.c:729: for each function it appears in.)

Patch attached.

jason

Index: client/gui-gtk/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/repodlgs.c,v
retrieving revision 1.74
diff -u -r1.74 repodlgs.c
--- client/gui-gtk/repodlgs.c   2003/10/15 21:15:46     1.74
+++ client/gui-gtk/repodlgs.c   2003/10/15 23:26:14
@@ -726,9 +726,7 @@
                || wonder_replacement(pcity, row_type.type))) {
          count++;
          gold += improvement_value(row_type.type);
-         packet.city_id = pcity->id;
-         packet.build_id = row_type.type;
-         send_packet_city_request(&aconnection, &packet, PACKET_CITY_SELL);
+         city_sell_improvement(pcity, row_type.type);
        }
       } city_list_iterate_end;
       

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