[Freeciv-Dev] Initial Map Knowledge.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Server/gamehand.c controls the amount of terrain exposed on the
initial map. This is different between Civ1 and Civ2. This patch
implements that difference.
*** gamehand.c 1998/11/25 11:51:42 1.23
--- gamehand.c 1998/12/01 22:42:09
***************
*** 75,81 ****
--- 75,90 ----
flog(LOG_DEBUG, "Removed hut on start position for %s",
game.players[i].name);
}
+ /* Civ 1 exposes a single square radius of the map to start the game. */
+ /* Civ 2 exposes a "city radius". -AJS */
light_square(&game.players[i], x, y, 1);
+ if (game.civstyle==2)
+ {
+ light_square(&game.players[i], x-1, y, 1);
+ light_square(&game.players[i], x+1, y, 1);
+ light_square(&game.players[i], x, y-1, 1);
+ light_square(&game.players[i], x, y+1, 1);
+ }
for (j=0;j<game.settlers;j++)
create_unit(&game.players[i], x, y, U_SETTLERS, 0, 0, -1);
for (j=0;j<game.explorer;j++)
--
Anthony J. Stuckey stuckey@xxxxxxxxxxxxxxxxx
"When I was young, the sky was filled with stars.
I watched them burn out one by one." -Warren Zevon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Initial Map Knowledge.,
Tony & <=
|
|