home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!zephyr.ens.tek.com!master!gnarly!billr
- From: billr@gnarly.CNA.TEK.COM (4422)
- Newsgroups: comp.sources.games
- Subject: v15i020: bt4 - Broken Throne, multiplayer realtime conquest game (V2.03), Patch1
- Message-ID: <3841@master.CNA.TEK.COM>
- Date: 31 Oct 92 05:08:13 GMT
- Sender: news@master.CNA.TEK.COM
- Lines: 242
- Approved: billr@saab.CNA.TEK.COM
- Xref: uunet comp.sources.games:1519
-
- Submitted-by: boutell@isis.cshl.org (Tom Boutell)
- Posting-number: Volume 15, Issue 20
- Archive-name: bt4/Patch1
- Patch-To: bt4: Volume 12, Issue 15-17
- Environment: INET sockets, curses
-
- [This brings the posted version upto version 2.05 -br]
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of shell archive."
- # Contents: patches01
- # Wrapped by billr@gnarly on Fri Oct 30 21:04:59 1992
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'patches01' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'patches01'\"
- else
- echo shar: Extracting \"'patches01'\" \(6323 characters\)
- sed "s/^X//" >'patches01' <<'END_OF_FILE'
- Xdiff -c -w ./bt.doc ../2.05/bt.doc
- X*** ./bt.doc Tue Oct 20 14:26:22 1992
- X--- ../2.05/bt.doc Wed Oct 21 16:43:22 1992
- X***************
- X*** 3,9 ****
- X A multiplayer, realtime game of conquest for the Unix operating system
- X
- X By Tom Boutell (boutell@cshl.org), 11/14/90
- X! Latest Revision (2.03) 10/20/92
- X
- X Permission granted to freely copy and alter the code, provided that new
- X versions are cleared through me before release. I will be acting as a
- X--- 3,9 ----
- X A multiplayer, realtime game of conquest for the Unix operating system
- X
- X By Tom Boutell (boutell@cshl.org), 11/14/90
- X! Latest Revision (2.05) 10/21/92
- X
- X Permission granted to freely copy and alter the code, provided that new
- X versions are cleared through me before release. I will be acting as a
- Xdiff -c -w ./btinterface.c ../2.05/btinterface.c
- X*** ./btinterface.c Tue Oct 20 13:17:04 1992
- X--- ../2.05/btinterface.c Wed Oct 21 16:44:15 1992
- X***************
- X*** 97,102 ****
- X--- 97,105 ----
- X for (current = 1; (current <= totalplayers); current++) {
- X players[current].live = 0;
- X }
- X+ #if TRACE
- X+ printf("Fetching players for new game.\n");
- X+ #endif
- X do {
- X int p;
- X unsigned char type;
- Xdiff -c -w ./btserver.c ../2.05/btserver.c
- X*** ./btserver.c Tue Oct 20 14:30:13 1992
- X--- ../2.05/btserver.c Wed Oct 21 16:39:32 1992
- X***************
- X*** 12,17 ****
- X--- 12,19 ----
- X #include "btpack.h"
- X #include "msleep.h"
- X
- X+ #define DUMPMAP 0
- X+
- X hex **map;
- X player players[_MAXPLAYERS];
- X
- X***************
- X*** 465,470 ****
- X--- 467,477 ----
- X for (i = 1; (i < regionnext); i++) {
- X int supportable;
- X int deficit;
- X+ if (!legal(regionshex[i].x, regionshex[i].y)) {
- X+ regionspop[i]=0;
- X+ } else if (map[regionshex[i].x][regionshex[i].y].region != i) {
- X+ regionspop[i]=0;
- X+ }
- X if (regionspop[i] == 0)
- X continue; /* No territory - defunct */
- X supportable = regionspop[i] / 100;
- X***************
- X*** 475,481 ****
- X deficit = regionstroops[i] - supportable;
- X /* Have a starvation event somewhere */
- X regionget(regionshex[i], hexes, &total);
- X- /* If the survey didn't fix it, it's real */
- X if (supportable < regionstroops[i]) {
- X where = (rand() % total);
- X origwhere = where;
- X--- 482,487 ----
- X***************
- X*** 623,629 ****
- X }
- X }
- X /* Dump map */
- X! #ifdef DUMPMAP
- X for (x = 0; (x < regionnext); x++) {
- X printf("%d:%d,%d ", x, regionspop[x], regionstroops[x]);
- X }
- X--- 629,635 ----
- X }
- X }
- X /* Dump map */
- X! #if DUMPMAP
- X for (x = 0; (x < regionnext); x++) {
- X printf("%d:%d,%d ", x, regionspop[x], regionstroops[x]);
- X }
- X***************
- X*** 762,775 ****
- X hexes[0] = at;
- X been[at.x][at.y] = 1;
- X r = map[at.x][at.y].region;
- X- /*
- X- * While we're here, may as well fix these values in case I've
- X- * managed to break them
- X- */
- X- regionspop[r] = 0;
- X- regionstroops[r] = 0;
- X- regionspop[r] += map[at.x][at.y].population;
- X- regionstroops[r] += map[at.x][at.y].troops;
- X do {
- X int i;
- X location c;
- X--- 768,773 ----
- X***************
- X*** 784,791 ****
- X hexes[hseed] = l;
- X hseed++;
- X been[l.x][l.y] = 1;
- X- regionspop[r] += map[l.x][l.y].population;
- X- regionstroops[r] += map[l.x][l.y].troops;
- X }
- X }
- X } while (cseed < hseed);
- X--- 782,787 ----
- X***************
- X*** 1229,1234 ****
- X--- 1225,1231 ----
- X regionstroops = (int *) malloc(sizeof(int) * gamemapsizex * gamemapsizey / 2);
- X regionshex = (location *) malloc(sizeof(location) * gamemapsizex * gamemapsizey / 2);
- X regionspop[0] = 0;
- X+
- X if (ismap) {
- X mf = fopen(mapfile, "r");
- X fgets(dummy, 80, mf); /* Throw away dimensions (already
- X***************
- X*** 1261,1266 ****
- X--- 1258,1264 ----
- X players[seed].population = terrainpopulation[5];
- X players[seed].live = 1;
- X players[seed].hexes = 1;
- X+ players[seed].action = 0;
- X players[seed].citadels = 1;
- X map[x][y].lastuse = 0;
- X recruitenqueue(x, y);
- X***************
- X*** 1375,1381 ****
- X players[seed].start.y = y;
- X players[seed].population = terrainpopulation[5];
- X players[seed].live = 1;
- X! players[seed].hexes++;
- X players[seed].citadels = 1;
- X regionspop[regionnext] = map[x][y].population;
- X regionstroops[regionnext] = 0;
- X--- 1373,1380 ----
- X players[seed].start.y = y;
- X players[seed].population = terrainpopulation[5];
- X players[seed].live = 1;
- X! players[seed].hexes = 1;
- X! players[seed].action = 0;
- X players[seed].citadels = 1;
- X regionspop[regionnext] = map[x][y].population;
- X regionstroops[regionnext] = 0;
- Xdiff -c -w ./changes ../2.05/changes
- X*** ./changes Tue Oct 20 14:25:05 1992
- X--- ../2.05/changes Wed Oct 21 16:40:28 1992
- X***************
- X*** 7,13 ****
- X lost your many nifty patches. ): I will quickly incorporate patches
- X made to version 2.0.
- X
- X! (Sure enough, version 2.03, which you are looking at,
- X incorporates several fixes. See the readme.)
- X
- X
- X--- 7,13 ----
- X lost your many nifty patches. ): I will quickly incorporate patches
- X made to version 2.0.
- X
- X! (Sure enough, version 2.05, which you are looking at,
- X incorporates several fixes. See the readme.)
- X
- X
- XOnly in .: patch2.03to2.05
- Xdiff -c -w ./readme ../2.05/readme
- X*** ./readme Tue Oct 20 14:27:26 1992
- X--- ../2.05/readme Wed Oct 21 16:42:54 1992
- X***************
- X*** 1,4 ****
- X! THE BROKEN THRONE, version 2.03
- X
- X By Tom Boutell, 11/20/90- 10/20/92. As of version 2.01, the game is
- X Copyright 1992, Thomas Boutell. You may do what you wish with it
- X--- 1,4 ----
- X! THE BROKEN THRONE, version 2.05
- X
- X By Tom Boutell, 11/20/90- 10/20/92. As of version 2.01, the game is
- X Copyright 1992, Thomas Boutell. You may do what you wish with it
- X***************
- X*** 88,93 ****
- X--- 88,104 ----
- X still out there, feel free to make those patches to version 2.0, and
- X I'll be glad to include them in version 2.1, especially since we
- X now have a good mechanism for controlling options.
- X+
- X+ CHANGES IN VERSION 2.05
- X+
- X+ - Massive starvation bug *really* fixed. Located and hit with a can of
- X+ Raid. Certain circumstances might still cause more minor breakages, but
- X+ homelands will *not* starve (when they shouldn't). Hurrah.
- X+
- X+ CHANGES IN VERSION 2.04
- X+
- X+ - A patch to fix the failure to reset hex and population counts after
- X+ games. Released only as a patch.
- X
- X CHANGES IN VERSION 2.03
- X
- END_OF_FILE
- if test 6323 -ne `wc -c <'patches01'`; then
- echo shar: \"'patches01'\" unpacked with wrong size!
- fi
- # end of 'patches01'
- fi
- echo shar: End of shell archive.
- exit 0
-