Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2002:
[Freeciv-Dev] Re: CMA and observer (PR#1557)
Home

[Freeciv-Dev] Re: CMA and observer (PR#1557)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <chrisk@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: CMA and observer (PR#1557)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jun 2002 11:05:14 +0200

On Tue, Jun 11, 2002 at 10:16:17AM -0700, Christian Knoke wrote:
> CVS 11 JUNE 2002
> 
> Terrible things happen if you connect two _controlling_ clients
> with the same player on the server (see option allowconnect).

If you give the two CMAs different goals it is interresting to see
that the clients will change the city forever. I have no answer what
should happen. So in short it isn't supported.

> If you connect an _observing_ client with a human player on the
> server, the server says:
> 
> 1: Got a packet of type 22 from a dead or observer player
> 1: Got a packet of type 23 from a dead or observer player
> 
> several times, and finally the observing client crashes and
> dumps core.

The attached patch should fix this. BUT the client should changed so
that no real actions are allowed if it is an observer. So a lot of 
  gtk_widget_set_sensitive(widget, !client_is_observer());
should be added to the code.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Python is executable pseudocode. Perl is executable line noise"
    -- Bruce Eckel

Attachment: 1557fix1.diff
Description: Text document


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