[Freeciv-Dev] Re: (PR#4449) revolution choice doesn't work
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#4449) revolution choice doesn't work |
From: |
"Jason Short" <jshort@xxxxxxxxxxxxxx> |
Date: |
Fri, 11 Jul 2003 12:37:07 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
--On Friday, July 11, 2003 12:32:50 -0700 "ChrisK@xxxxxxxx"
<ChrisK@xxxxxxxx> wrote:
> On Thu, Jul 10, 2003 at 10:40:35AM -0700, Jason Short wrote:
>>
>> [jshort@xxxxxxxxxxxxxx - Fri Jun 27 18:41:01 2003]:
>>
>> > I selected menu kingdom->government->democracy.
>> >
>> > Several turns later, my revolution is over. Up pops the "choose your
>> > government" dialog. Most confusing of all, the "revolution finished"
>> > message comes up about a dozen times.
>>
>> When the revolution is over, the server sends a player packet to the
>> player. This packet includes packet->revolution==0 to tell that the
>> revolution is over. The client sees that revolution==0 while the
>> government is still anarchy and does the "end revolution" handling.
>
> It shouldn't do anything here, if the user has ordered "Democracy" before.
> Or better the packet wasn't sent.
I'm not sure what you mean by "shouldn't". The problem is: how do we tell
if this packet is a new revolution-ended packet, or a duplicate one? We
could do it with the introduction of a new static variable, but this just
gives more possibility for bugs (on disconnect, re-revolution, etc.).
jason
|
|