Summary: Use tile ID when asking about what diplomat action
should be taken
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Wed 05 Feb 2014 07:59:31 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: sveinung
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0



When the server isn't sure what action an unit with the Diplomat flag should
take when moving to a tile it must ask the player. A client may queue this
question until the player has answered other questions.

The server used to ask by sending the client the ID of the Diplomat and the ID
of a potential victim on the tile. The potential victim may move before the
diplomat action dialog is shown to the player. If the player intendeds to move
to the tile it self or target another victim on the tile the old behavior will
give an unexpected result.

Change this so the server sends the tile ID in stead of the ID of a potential
victim. Make the client queue the tile ID in stead of the victim ID. Since the
client don't send the server supplied potential victim ID to
popup_diplomat_dialog() no server control is lost.


File Attachments:

Date: Wed 05 Feb 2014 07:59:31 PM GMT  Name: QueueTile.patch  Size: 9kB   By:



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to