[Freeciv-Dev] (PR#8572) ext conn dialog improvements
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#8572) ext conn dialog improvements |
From: |
"Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx> |
Date: |
Fri, 23 Apr 2004 16:36:05 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8572 >
Found another bug in connectdlg_common.c which prevented me to resume
some saved games. The code was trying to connect using the wrong user
name. Here is a patch.
Index: client/connectdlg_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/connectdlg_common.c,v
retrieving revision 1.7
diff -u -r1.7 connectdlg_common.c
--- client/connectdlg_common.c 23 Apr 2004 23:23:53 -0000 1.7
+++ client/connectdlg_common.c 23 Apr 2004 23:34:05 -0000
@@ -219,8 +219,8 @@
}
/* a reasonable number of tries */
- while(connect_to_server(user_username(), "localhost", server_port,
- buf, sizeof(buf)) == -1) {
+ while (connect_to_server(user_name, "localhost", server_port,
+ buf, sizeof(buf)) == -1) {
myusleep(WAIT_BETWEEN_TRIES);
if (connect_tries++ > NUMBER_OF_TRIES) {
|
|