[Freeciv-Dev] Re: (PR#6442) gen5 wrapping
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jason Short wrote:
> This simple patch replaces two gen5 wrapping constants with queried
> topology values.
Here's an alternative form that makes Ross happy, at the cost of being
less readible.
jason
Index: server/mapgen.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/mapgen.c,v
retrieving revision 1.118
diff -u -r1.118 mapgen.c
--- server/mapgen.c 2003/10/03 11:29:31 1.118
+++ server/mapgen.c 2003/10/13 21:45:19
@@ -2099,8 +2099,8 @@
**************************************************************************/
static void mapgenerator5(void)
{
- const bool xnowrap = FALSE; /* could come from topology */
- const bool ynowrap = TRUE; /* could come from topology */
+ const bool xnowrap = !topo_has_flag(TF_WRAPX);
+ const bool ynowrap = !topo_has_flag(TF_WRAPY);
/*
* How many blocks should the x and y directions be divided into
|
|