[Freeciv-Dev] (PR#8557) auto-launched games should have topology to matc
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#8557) auto-launched games should have topology to match view |
From: |
"Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx> |
Date: |
Tue, 20 Apr 2004 12:00:49 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8557 >
When you launch a game via the extended connectdlg, you should get a
topology that matches your view. So in iso-view you get an iso topology
and in classic view you get a classic topology.
This is basically a requirement to get good behavior for newbie users,
which is a primary goal of the extended connectdlg.
This patch does this in a mildly hackish way. Every time a server is
launched we call /set topology <topology>. Note that when you load a
game the topology will be set but then reset by the load.
jason
? cma_weirdness
? data/civ3
? data/womoks
Index: client/connectdlg_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/connectdlg_common.c,v
retrieving revision 1.5
diff -u -r1.5 connectdlg_common.c
--- client/connectdlg_common.c 16 Apr 2004 17:30:27 -0000 1.5
+++ client/connectdlg_common.c 20 Apr 2004 18:57:18 -0000
@@ -55,6 +55,7 @@
#include "chatline_common.h"
#include "connectdlg_g.h"
#include "connectdlg_common.h"
+#include "tilespec.h"
#define WAIT_BETWEEN_TRIES 100000 /* usecs */
#define NUMBER_OF_TRIES 500
@@ -146,7 +147,7 @@
int i = 0;
int nargs = 4; /* base number of args */
char **argv = NULL;
- char buf[512];
+ char buf[512], buf2[MAX_LEN_MSG];
/* only one server (forked from this client) shall be running at a time */
client_kill_server();
@@ -260,6 +261,10 @@
"start one manually. Sorry..."));
return FALSE;
}
+
+ my_snprintf(buf2, sizeof(buf2), "/set topology %d",
+ TF_WRAPX | (is_isometric ? TF_ISO : 0));
+ send_chat(buf2);
return TRUE;
#else /* Can't do much without fork(). */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#8557) auto-launched games should have topology to match view,
Jason Short <=
|
|