home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume7
/
gb2
/
patch3
/
patches03
Wrap
Text File
|
1989-10-02
|
3KB
|
95 lines
Patch2 inadvertantly did not update the patchlevel.h file, so
even though this looks wrong it is correct.-br
*** ../../GB2/patchlevel.h Fri Sep 15 08:45:12 1989
--- patchlevel.h Thu Sep 21 06:37:16 1989
***************
*** 1 ****
! #define PATCHLEVEL 1
--- 1 ----
! #define PATCHLEVEL 3
*** ../../GB2/doplanet.c Mon Sep 18 06:35:57 1989
--- doplanet.c Thu Sep 21 06:30:04 1989
***************
*** 332,337 ****
--- 332,340 ----
while (Getxysect(planet, &x, &y, 0)) {
p = &Sector(*planet,x,y);
+ /* wasted sectors have a 1% chance/turn of repairing themselves
+ from natural effects */
+ if(p->is_wasted && !int_rand(0,99))p->is_wasted = 0;
if (p->amoeba) {
planet->info[1-1].numsectsowned++;
allamoeba &= 1;
***************
*** 622,628 ****
/* slave revolt! */
printf("slave revolt!\n");
/* first nuke some random sectors from the revolt */
! i = planet->popn / 10000 + 1;
printf("i %d Maxx %d Maxy %d\n",i,planet->Maxx,planet->Maxy);
while (--i) {
p = &Sector(*planet,int_rand(0,planet->Maxx-1),
--- 625,631 ----
/* slave revolt! */
printf("slave revolt!\n");
/* first nuke some random sectors from the revolt */
! i = planet->popn / 1000 + 1;
printf("i %d Maxx %d Maxy %d\n",i,planet->Maxx,planet->Maxy);
while (--i) {
p = &Sector(*planet,int_rand(0,planet->Maxx-1),
***************
*** 698,700 ****
--- 701,704 ----
}
return allmod;
}
+
*** ../../GB2/files_shl.c Fri Sep 15 08:44:27 1989
--- files_shl.c Thu Sep 21 06:33:55 1989
***************
*** 365,373 ****
shipno = shipnum; /* conv to u_short */
! if(shipnum == 0)return;
if ( (fd = open(SHIPFREEDATAFL, O_WRONLY, 0777)) < 0) {
perror("openshfdata");
printf("unable to open %s\n",SHIPFREEDATAFL);
exit(-1);
--- 365,375 ----
shipno = shipnum; /* conv to u_short */
! if(shipno == 0)return;
if ( (fd = open(SHIPFREEDATAFL, O_WRONLY, 0777)) < 0) {
+ printf("fd = %d \n",fd);
+ printf("errno = %d \n",errno);
perror("openshfdata");
printf("unable to open %s\n",SHIPFREEDATAFL);
exit(-1);
***************
*** 376,384 ****
printf("ship #%u destroyed.\n", shipno);
/* write the ship # at the very end of SHIPFREEDATAFL */
fstat(fd,&buf);
! Locks(1);
Filewrite(fd,(char *)&shipno, sizeof(shipno), SHIPFREEDATAFL, buf.st_size );
Locks(0);
}
--- 378,387 ----
printf("ship #%u destroyed.\n", shipno);
/* write the ship # at the very end of SHIPFREEDATAFL */
fstat(fd,&buf);
! Locks(1);
Filewrite(fd,(char *)&shipno, sizeof(shipno), SHIPFREEDATAFL, buf.st_size );
Locks(0);
+ close(fd);
}