home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume7 / gb2 / patch3 / patches03
Text File  |  1989-10-02  |  3KB  |  95 lines

  1. Patch2 inadvertantly did not update the patchlevel.h file, so
  2. even though this looks wrong it is correct.-br
  3. *** ../../GB2/patchlevel.h    Fri Sep 15 08:45:12 1989
  4. --- patchlevel.h    Thu Sep 21 06:37:16 1989
  5. ***************
  6. *** 1 ****
  7. ! #define PATCHLEVEL    1
  8. --- 1 ----
  9. ! #define PATCHLEVEL    3
  10. *** ../../GB2/doplanet.c    Mon Sep 18 06:35:57 1989
  11. --- doplanet.c    Thu Sep 21 06:30:04 1989
  12. ***************
  13. *** 332,337 ****
  14. --- 332,340 ----
  15.   
  16.   while (Getxysect(planet, &x, &y, 0)) {
  17.          p = &Sector(*planet,x,y);
  18. + /* wasted sectors have a 1% chance/turn of repairing themselves
  19. +     from natural effects */
  20. +     if(p->is_wasted && !int_rand(0,99))p->is_wasted = 0;
  21.          if (p->amoeba) {
  22.           planet->info[1-1].numsectsowned++;
  23.           allamoeba &= 1;
  24. ***************
  25. *** 622,628 ****
  26.            /* slave revolt! */
  27.       printf("slave revolt!\n");
  28.            /* first nuke some random sectors from the revolt */
  29. !         i = planet->popn / 10000 + 1;
  30.       printf("i %d  Maxx %d  Maxy %d\n",i,planet->Maxx,planet->Maxy);
  31.           while (--i) {
  32.               p = &Sector(*planet,int_rand(0,planet->Maxx-1),
  33. --- 625,631 ----
  34.            /* slave revolt! */
  35.       printf("slave revolt!\n");
  36.            /* first nuke some random sectors from the revolt */
  37. !         i = planet->popn / 1000 + 1;
  38.       printf("i %d  Maxx %d  Maxy %d\n",i,planet->Maxx,planet->Maxy);
  39.           while (--i) {
  40.               p = &Sector(*planet,int_rand(0,planet->Maxx-1),
  41. ***************
  42. *** 698,700 ****
  43. --- 701,704 ----
  44.    }
  45.    return allmod;
  46.   }
  47. *** ../../GB2/files_shl.c    Fri Sep 15 08:44:27 1989
  48. --- files_shl.c    Thu Sep 21 06:33:55 1989
  49. ***************
  50. *** 365,373 ****
  51.   
  52.     shipno = shipnum;    /* conv to u_short */
  53.   
  54. !  if(shipnum == 0)return;
  55.   
  56.     if ( (fd = open(SHIPFREEDATAFL, O_WRONLY, 0777)) < 0) {
  57.         perror("openshfdata");
  58.         printf("unable to open %s\n",SHIPFREEDATAFL);
  59.         exit(-1);
  60. --- 365,375 ----
  61.   
  62.     shipno = shipnum;    /* conv to u_short */
  63.   
  64. !  if(shipno == 0)return;
  65.   
  66.     if ( (fd = open(SHIPFREEDATAFL, O_WRONLY, 0777)) < 0) {
  67. +     printf("fd = %d \n",fd);
  68. +     printf("errno = %d \n",errno);
  69.         perror("openshfdata");
  70.         printf("unable to open %s\n",SHIPFREEDATAFL);
  71.         exit(-1);
  72. ***************
  73. *** 376,384 ****
  74.     printf("ship #%u destroyed.\n", shipno);
  75.       /* write the ship # at the very end of SHIPFREEDATAFL */
  76.     fstat(fd,&buf);
  77. !     Locks(1);
  78.     Filewrite(fd,(char *)&shipno, sizeof(shipno), SHIPFREEDATAFL, buf.st_size );
  79.       Locks(0);
  80.   }
  81.   
  82.   
  83. --- 378,387 ----
  84.     printf("ship #%u destroyed.\n", shipno);
  85.       /* write the ship # at the very end of SHIPFREEDATAFL */
  86.     fstat(fd,&buf);
  87. !     Locks(1); 
  88.     Filewrite(fd,(char *)&shipno, sizeof(shipno), SHIPFREEDATAFL, buf.st_size );
  89.       Locks(0);
  90. +     close(fd);
  91.   }
  92.   
  93.   
  94.