version 1.27 | | version 1.28 |
---|
| | |
/* | | /* |
* static char *rcsid_random_map_c = | | * static char *rcsid_random_map_c = |
* "$Id: random_map.c,v 1.27 2001/05/15 17:56:31 mardahl Exp $"; | | * "$Id: random_map.c,v 1.28 2001/10/07 06:45:40 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 1994 Mark Wedel | | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to mark@pyramid.com | | The authors can be reached via e-mail at crossfire-devel@real-time.com |
*/ | | */ |
| | |
#include <time.h> | | #include <time.h> |
| | |
} | | } |
else | | else |
{ | | { |
if(RP->Xsize<6) RP->Xsize = 15 + RANDOM()%25; | | /* Has to be at least 7 for square spirals to work */ |
if(RP->Ysize<6) RP->Ysize = 15 + RANDOM()%25; | | if(RP->Xsize<7) RP->Xsize = 15 + RANDOM()%25; |
| | if(RP->Ysize<7) RP->Ysize = 15 + RANDOM()%25; |
} | | } |
| | |
if(RP->symmetry == RANDOM_SYM) { | | if(RP->symmetry == RANDOM_SYM) { |