home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume15 / bt4 / patch1 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  7.9 KB

  1. Path: uunet!zephyr.ens.tek.com!master!gnarly!billr
  2. From: billr@gnarly.CNA.TEK.COM (4422)
  3. Newsgroups: comp.sources.games
  4. Subject: v15i020:  bt4 - Broken Throne, multiplayer realtime conquest game (V2.03), Patch1
  5. Message-ID: <3841@master.CNA.TEK.COM>
  6. Date: 31 Oct 92 05:08:13 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 242
  9. Approved: billr@saab.CNA.TEK.COM
  10. Xref: uunet comp.sources.games:1519
  11.  
  12. Submitted-by: boutell@isis.cshl.org (Tom Boutell)
  13. Posting-number: Volume 15, Issue 20
  14. Archive-name: bt4/Patch1
  15. Patch-To: bt4: Volume 12, Issue 15-17
  16. Environment: INET sockets, curses
  17.  
  18.     [This brings the posted version upto version 2.05  -br]
  19.  
  20. #! /bin/sh
  21. # This is a shell archive.  Remove anything before this line, then unpack
  22. # it by saving it into a file and typing "sh file".  To overwrite existing
  23. # files, type "sh file -c".  You can also feed this as standard input via
  24. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  25. # will see the following message at the end:
  26. #        "End of shell archive."
  27. # Contents:  patches01
  28. # Wrapped by billr@gnarly on Fri Oct 30 21:04:59 1992
  29. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  30. if test -f 'patches01' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'patches01'\"
  32. else
  33. echo shar: Extracting \"'patches01'\" \(6323 characters\)
  34. sed "s/^X//" >'patches01' <<'END_OF_FILE'
  35. Xdiff -c -w ./bt.doc ../2.05/bt.doc
  36. X*** ./bt.doc    Tue Oct 20 14:26:22 1992
  37. X--- ../2.05/bt.doc    Wed Oct 21 16:43:22 1992
  38. X***************
  39. X*** 3,9 ****
  40. X  A multiplayer, realtime game of conquest for the Unix operating system
  41. X  
  42. X  By Tom Boutell (boutell@cshl.org), 11/14/90
  43. X! Latest Revision (2.03) 10/20/92
  44. X  
  45. X  Permission granted to freely copy and alter the code, provided that new
  46. X  versions are cleared through me before release. I will be acting as a
  47. X--- 3,9 ----
  48. X  A multiplayer, realtime game of conquest for the Unix operating system
  49. X  
  50. X  By Tom Boutell (boutell@cshl.org), 11/14/90
  51. X! Latest Revision (2.05) 10/21/92
  52. X  
  53. X  Permission granted to freely copy and alter the code, provided that new
  54. X  versions are cleared through me before release. I will be acting as a
  55. Xdiff -c -w ./btinterface.c ../2.05/btinterface.c
  56. X*** ./btinterface.c    Tue Oct 20 13:17:04 1992
  57. X--- ../2.05/btinterface.c    Wed Oct 21 16:44:15 1992
  58. X***************
  59. X*** 97,102 ****
  60. X--- 97,105 ----
  61. X      for (current = 1; (current <= totalplayers); current++) {
  62. X          players[current].live = 0;
  63. X      }
  64. X+ #if TRACE
  65. X+     printf("Fetching players for new game.\n");
  66. X+ #endif
  67. X      do {
  68. X          int             p;
  69. X          unsigned char   type;
  70. Xdiff -c -w ./btserver.c ../2.05/btserver.c
  71. X*** ./btserver.c    Tue Oct 20 14:30:13 1992
  72. X--- ../2.05/btserver.c    Wed Oct 21 16:39:32 1992
  73. X***************
  74. X*** 12,17 ****
  75. X--- 12,19 ----
  76. X  #include "btpack.h"
  77. X  #include "msleep.h"
  78. X  
  79. X+ #define DUMPMAP 0
  80. X+ 
  81. X  hex           **map;
  82. X  player          players[_MAXPLAYERS];
  83. X  
  84. X***************
  85. X*** 465,470 ****
  86. X--- 467,477 ----
  87. X      for (i = 1; (i < regionnext); i++) {
  88. X          int             supportable;
  89. X          int             deficit;
  90. X+         if (!legal(regionshex[i].x, regionshex[i].y)) {
  91. X+             regionspop[i]=0;
  92. X+         } else if (map[regionshex[i].x][regionshex[i].y].region != i) {
  93. X+             regionspop[i]=0;
  94. X+         }
  95. X          if (regionspop[i] == 0)
  96. X              continue;    /* No territory - defunct */
  97. X          supportable = regionspop[i] / 100;
  98. X***************
  99. X*** 475,481 ****
  100. X              deficit = regionstroops[i] - supportable;
  101. X              /* Have a starvation event somewhere */
  102. X              regionget(regionshex[i], hexes, &total);
  103. X-             /* If the survey didn't fix it, it's real */
  104. X              if (supportable < regionstroops[i]) {
  105. X                  where = (rand() % total);
  106. X                  origwhere = where;
  107. X--- 482,487 ----
  108. X***************
  109. X*** 623,629 ****
  110. X          }
  111. X      }
  112. X      /* Dump map */
  113. X! #ifdef DUMPMAP
  114. X      for (x = 0; (x < regionnext); x++) {
  115. X          printf("%d:%d,%d ", x, regionspop[x], regionstroops[x]);
  116. X      }
  117. X--- 629,635 ----
  118. X          }
  119. X      }
  120. X      /* Dump map */
  121. X! #if DUMPMAP
  122. X      for (x = 0; (x < regionnext); x++) {
  123. X          printf("%d:%d,%d ", x, regionspop[x], regionstroops[x]);
  124. X      }
  125. X***************
  126. X*** 762,775 ****
  127. X      hexes[0] = at;
  128. X      been[at.x][at.y] = 1;
  129. X      r = map[at.x][at.y].region;
  130. X-     /*
  131. X-      * While we're here, may as well fix these values in case I've
  132. X-      * managed to break them
  133. X-      */
  134. X-     regionspop[r] = 0;
  135. X-     regionstroops[r] = 0;
  136. X-     regionspop[r] += map[at.x][at.y].population;
  137. X-     regionstroops[r] += map[at.x][at.y].troops;
  138. X      do {
  139. X          int             i;
  140. X          location        c;
  141. X--- 768,773 ----
  142. X***************
  143. X*** 784,791 ****
  144. X                  hexes[hseed] = l;
  145. X                  hseed++;
  146. X                  been[l.x][l.y] = 1;
  147. X-                 regionspop[r] += map[l.x][l.y].population;
  148. X-                 regionstroops[r] += map[l.x][l.y].troops;
  149. X              }
  150. X          }
  151. X      } while (cseed < hseed);
  152. X--- 782,787 ----
  153. X***************
  154. X*** 1229,1234 ****
  155. X--- 1225,1231 ----
  156. X      regionstroops = (int *) malloc(sizeof(int) * gamemapsizex * gamemapsizey / 2);
  157. X      regionshex = (location *) malloc(sizeof(location) * gamemapsizex * gamemapsizey / 2);
  158. X      regionspop[0] = 0;
  159. X+ 
  160. X      if (ismap) {
  161. X          mf = fopen(mapfile, "r");
  162. X          fgets(dummy, 80, mf);    /* Throw away dimensions (already
  163. X***************
  164. X*** 1261,1266 ****
  165. X--- 1258,1264 ----
  166. X                          players[seed].population = terrainpopulation[5];
  167. X                          players[seed].live = 1;
  168. X                          players[seed].hexes = 1;
  169. X+                         players[seed].action = 0;
  170. X                          players[seed].citadels = 1;
  171. X                          map[x][y].lastuse = 0;
  172. X                          recruitenqueue(x, y);
  173. X***************
  174. X*** 1375,1381 ****
  175. X          players[seed].start.y = y;
  176. X          players[seed].population = terrainpopulation[5];
  177. X          players[seed].live = 1;
  178. X!         players[seed].hexes++;
  179. X          players[seed].citadels = 1;
  180. X          regionspop[regionnext] = map[x][y].population;
  181. X          regionstroops[regionnext] = 0;
  182. X--- 1373,1380 ----
  183. X          players[seed].start.y = y;
  184. X          players[seed].population = terrainpopulation[5];
  185. X          players[seed].live = 1;
  186. X!         players[seed].hexes = 1;
  187. X!         players[seed].action = 0;
  188. X          players[seed].citadels = 1;
  189. X          regionspop[regionnext] = map[x][y].population;
  190. X          regionstroops[regionnext] = 0;
  191. Xdiff -c -w ./changes ../2.05/changes
  192. X*** ./changes    Tue Oct 20 14:25:05 1992
  193. X--- ../2.05/changes    Wed Oct 21 16:40:28 1992
  194. X***************
  195. X*** 7,13 ****
  196. X  lost your many nifty patches. ): I will quickly incorporate patches
  197. X  made to version 2.0.
  198. X  
  199. X! (Sure enough, version 2.03, which you are looking at,
  200. X  incorporates several fixes. See the readme.)
  201. X  
  202. X  
  203. X--- 7,13 ----
  204. X  lost your many nifty patches. ): I will quickly incorporate patches
  205. X  made to version 2.0.
  206. X  
  207. X! (Sure enough, version 2.05, which you are looking at,
  208. X  incorporates several fixes. See the readme.)
  209. X  
  210. X  
  211. XOnly in .: patch2.03to2.05
  212. Xdiff -c -w ./readme ../2.05/readme
  213. X*** ./readme    Tue Oct 20 14:27:26 1992
  214. X--- ../2.05/readme    Wed Oct 21 16:42:54 1992
  215. X***************
  216. X*** 1,4 ****
  217. X! THE BROKEN THRONE, version 2.03
  218. X  
  219. X  By Tom Boutell, 11/20/90- 10/20/92. As of version 2.01, the game is
  220. X  Copyright 1992, Thomas Boutell. You may do what you wish with it
  221. X--- 1,4 ----
  222. X! THE BROKEN THRONE, version 2.05
  223. X  
  224. X  By Tom Boutell, 11/20/90- 10/20/92. As of version 2.01, the game is
  225. X  Copyright 1992, Thomas Boutell. You may do what you wish with it
  226. X***************
  227. X*** 88,93 ****
  228. X--- 88,104 ----
  229. X  still out there, feel free to make those patches to version 2.0, and
  230. X  I'll be glad to include them in version 2.1, especially since we
  231. X  now have a good mechanism for controlling options.
  232. X+ 
  233. X+ CHANGES IN VERSION 2.05
  234. X+ 
  235. X+ - Massive starvation bug *really* fixed. Located and hit with a can of
  236. X+ Raid. Certain circumstances might still cause more minor breakages, but
  237. X+ homelands will *not* starve (when they shouldn't). Hurrah. 
  238. X+ 
  239. X+ CHANGES IN VERSION 2.04
  240. X+ 
  241. X+ - A patch to fix the failure to reset hex and population counts after
  242. X+ games. Released only as a patch.
  243. X  
  244. X  CHANGES IN VERSION 2.03
  245. X  
  246. END_OF_FILE
  247. if test 6323 -ne `wc -c <'patches01'`; then
  248.     echo shar: \"'patches01'\" unpacked with wrong size!
  249. fi
  250. # end of 'patches01'
  251. fi
  252. echo shar: End of shell archive.
  253. exit 0
  254.