Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9350) allow votes from new conndlg server options dlg
Home

[Freeciv-Dev] (PR#9350) allow votes from new conndlg server options dlg

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9350) allow votes from new conndlg server options dlg
From: "Per Inge Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 12 Jul 2004 08:46:34 -0700
Reply-to: rt@xxxxxxxxxxx

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

This simple patch allows you to start new votes for server options from
the new server options dialog from the conndlg patch. Just edit a setting,
and (a) new vote(s) start.

  - Per

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.324
diff -u -r1.324 stdinhand.c
--- server/stdinhand.c  3 Jul 2004 17:11:35 -0000       1.324
+++ server/stdinhand.c  12 Jul 2004 15:43:08 -0000
@@ -2829,8 +2829,8 @@
   static struct packet_options_settable packet;
   int i, s = 0;
 
-  if (dest->access_level < ALLOW_CTRL ||
-      (which == 1 && server_state > PRE_GAME_STATE)){
+  if (dest->access_level == ALLOW_NONE
+      || (which == 1 && server_state > PRE_GAME_STATE)) {
     report_server_options(&dest->self, which);
     return;
   }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9350) allow votes from new conndlg server options dlg, Per Inge Mathisen <=