X newerror("Ok, Your Nation has been Added to the World");
X att_setup(country); /* setup values ntn attributes */
+ #ifdef CHECKUSER
+ curntn->uid = realuser;
+ #endif
X fclose(fexe);
+ pccount++;
X sprintf(tempc,"NOTICE: Nation %s added to world on turn %d\n",curntn->name,TURN);
X mailtopc(tempc);
X /* cannot clear until after placement and initializing */
X curntn->powers=0;
X }
+ #ifndef CHECKUSER
X country=0;
X for(i=1;i<NTOTAL;i++) if (ntn[i].active==INACTIVE) {
X country = i;
***************
*** 874,880 ****
X curntn = &ntn[country];
X break;
X }
! if (country!=0) {
X newmsg("Do you wish to Add another Nation? [ny]");
X if (getch()!='y') more = FALSE;
X else more = TRUE;
--- 901,907 ----
X curntn = &ntn[country];
X break;
X }
! if ((country!=0)&&(pccount+1>=NTOTAL-REVSPACE)) {
X newmsg("Do you wish to Add another Nation? [ny]");
X if (getch()!='y') more = FALSE;
X else more = TRUE;
***************
*** 882,887 ****
--- 909,917 ----
X more = FALSE;
X newerror("No More Available Nations");
X }
+ #else
+ more = FALSE;
+ #endif
X }
X newreset();
X att_base(); /* calculate base nation attributes */
diff -cr ../oldconq4/notes.v4 ./notes.v4
*** ../oldconq4/notes.v4 Thu Jul 9 19:29:32 1992
--- ./notes.v4 Thu Jul 9 18:38:45 1992
***************
*** 391,396 ****
--- 391,422 ----
X 324. put a 500 men cap on the amount needed to capture a sector.
X 325. added in a query as to how much purchase should be made from God trades.
X 326. made sure to close the commerce file before removing it.
+ ===4.0 patch number ten released => 4.11 ==(spide)====================
+ WARNING: This patch may require re-creation of any worlds from scratch
+ (not compatible with worlds created under 4.10 if CHECKUSER set)
+ -spide (mcy1580@ultb.isc.rit.edu)
+ 327. added LASTADD
+ o the last turn that players may add w/o the god password
+ 328. added CHECKUSER to enable uid locking on nations
+ o checks the uid of the player against the one who
+ created the nation - to prevent a player from creating
+ two nations and using one to take over another.
+ 329. added USERLOG to turn on logging of game/nation usage
+ o sorta useful info - creates a .userlog file
+ 330. added MASK/umask in admin.c to allow group read/write as well
+ o so people in same group (games) could look at files
+ 331. added REVSPACE to be able to leave room in nation list for revolts
+ o allow space in nation list for revolts - to discourage
+ players from setting take rate to 20% when no room for
+ revolts - leaves room at the beginning of game for them.
+ 332. modified spell sector effect to be 1 pt / 1000 people as documented
+ o something we wanted
+ 333. added -l (-ngod) option so god can list owners of nations (CHECKUSER)
+ added -u (-nNATION) option so god can modify owner of nations (CHECKUSER)
+ o necesary tools to go w/ CHECKUSER
+ o requires/uses god password
+ 334. made the CHECKUSER option change data structure only if enabled.
+ 335. changed all "#endif FOO" statements to "#endif /* FOO */".
X
X -------------------------------------------------------------------------
X | 2.0 POSSIBLE SHORT-TERM ENHANCEMENTS/FIXES FOR CONQUER V5 |
***************
*** 1209,1212 ****
X 415) cleaned up location adding in newlogin.c
X 416) can now go to war with peasants.
X 417) added revolt percent chance to change screen
-
--- 1235,1237 ----
diff -cr ../oldconq4/npc.c ./npc.c
*** ../oldconq4/npc.c Thu Jul 9 19:26:29 1992
--- ./npc.c Thu Jul 9 18:21:21 1992
***************
*** 86,92 ****
X }
X printf("\n");
X }
! #endif DEBUG
X }
X
X /*newdip() diplomacy if unmet - ntn 1 is nation you are updating*/
--- 86,92 ----
X }
X printf("\n");
X }
! #endif /* DEBUG */
X }
X
X /*newdip() diplomacy if unmet - ntn 1 is nation you are updating*/
***************
*** 170,176 ****
X
X #ifdef DEBUG
X printf("monsters: need %d have %d\n",neededtroops,actualtroops);
! #endif DEBUG
X
X neededtroops= neededtroops-actualtroops;
X
--- 170,176 ----
X
X #ifdef DEBUG
X printf("monsters: need %d have %d\n",neededtroops,actualtroops);
! #endif /* DEBUG */
X
X neededtroops= neededtroops-actualtroops;
X
***************
*** 178,184 ****
X {
X #ifdef DEBUG
X printf("\t need %d monster troops\n",neededtroops);
! #endif
X if ( (rand()%8)<5 && nomad_space)
X {
X while(!is_habitable((x=(rand()%(MAPX-8))+4),
--- 178,184 ----
X {
X #ifdef DEBUG
X printf("\t need %d monster troops\n",neededtroops);
! #endif /* */
X if ( (rand()%8)<5 && nomad_space)
X {
X while(!is_habitable((x=(rand()%(MAPX-8))+4),
***************
*** 272,278 ****
X P_ASOLD=0;
X break;
X }
! /* nomads cant stay in the same spot */
X if(( x==P_AXLOC && y==P_AYLOC )
X ||(!ONMAP(x,y)
X ||(!is_habitable(x,y)))
--- 272,278 ----
X P_ASOLD=0;
X break;
X }
! /* nomads cannot stay in the same spot */
X if(( x==P_AXLOC && y==P_AYLOC )
X ||(!ONMAP(x,y)
X ||(!is_habitable(x,y)))
***************
*** 384,390 ****
X #endif /* MORE_MONST */
X }
X }
! #endif MONSTER
X
X #ifdef NPC
X void
--- 384,390 ----
X #endif /* MORE_MONST */
X }
X }
! #endif /* MONSTER */
X
X #ifdef NPC
X void
***************
*** 507,513 ****
X ||(sct[P_AXLOC][P_AYLOC].owner!=country)){
X #ifdef DEBUG
X printf("\teliminating %s army %d as %d %d is des:%c alt:%c own:%d\n",unittype[P_ATYPE],armynum,P_AXLOC,P_AYLOC,sct[P_AXLOC][P_AYLOC].designation,sct[P_AXLOC][P_AYLOC].altitude,sct[P_AXLOC][P_AYLOC].owner);
! #endif DEBUG
X if(sct[P_AXLOC][P_AYLOC].owner == country)
X sct[P_AXLOC][P_AYLOC].people+=P_ASOLD;
X else sct[curntn->capx][curntn->capy].people+=P_ASOLD;
--- 507,513 ----
X ||(sct[P_AXLOC][P_AYLOC].owner!=country)){
X #ifdef DEBUG
X printf("\teliminating %s army %d as %d %d is des:%c alt:%c own:%d\n",unittype[P_ATYPE],armynum,P_AXLOC,P_AYLOC,sct[P_AXLOC][P_AYLOC].designation,sct[P_AXLOC][P_AYLOC].altitude,sct[P_AXLOC][P_AYLOC].owner);
! #endif /* DEBUG */
X if(sct[P_AXLOC][P_AYLOC].owner == country)
X sct[P_AXLOC][P_AYLOC].people+=P_ASOLD;
X else sct[curntn->capx][curntn->capy].people+=P_ASOLD;
***************
*** 552,558 ****
X else if(peace==12)
X printf("\t%s IS AT WAR - garrison in cap is %d, ideal is %ld\n",curntn->name,P_ASOLD,ideal);
X else printf("error - incap is %d ideal is %ld\n",P_ASOLD,ideal);
! #endif DEBUG
X
X /*MILRATIO ratio mil:civ for non player countries*/
X /*MILINCAP ratio (mil in cap):mil for NPCs*/
--- 552,558 ----
X else if(peace==12)
X printf("\t%s IS AT WAR - garrison in cap is %d, ideal is %ld\n",curntn->name,P_ASOLD,ideal);
X else printf("error - incap is %d ideal is %ld\n",P_ASOLD,ideal);
! #endif /* DEBUG */
X
X /*MILRATIO ratio mil:civ for non player countries*/
X /*MILINCAP ratio (mil in cap):mil for NPCs*/
***************
*** 572,578 ****
X
X #ifdef DEBUG
X printf("\tadding %d men to garrison (too few men on garrison)\n",diff);
! #endif DEBUG
X
X sct[curntn->capx][curntn->capy].people-=diff;
X P_ASOLD+=diff;
--- 572,578 ----
X
X #ifdef DEBUG
X printf("\tadding %d men to garrison (too few men on garrison)\n",diff);
! #endif /* DEBUG */
X
X sct[curntn->capx][curntn->capy].people-=diff;
X P_ASOLD+=diff;
***************
*** 584,590 ****
X curntn->metals-=(diff* *(u_enmetal + (P_ATYPE%UTYPE)));
X #ifdef DEBUG
X if(P_ASOLD < 0L) printf("error 2... P_ASOLD=%d <0\n",P_ASOLD);
! #endif DEBUG
X }
X /*else split garrison army if 1.25* needed number*/
X else if(P_ASOLD *4L > 5L*ideal){
--- 584,590 ----
X curntn->metals-=(diff* *(u_enmetal + (P_ATYPE%UTYPE)));
X #ifdef DEBUG
X if(P_ASOLD < 0L) printf("error 2... P_ASOLD=%d <0\n",P_ASOLD);
! #endif /* DEBUG */
X }
X /*else split garrison army if 1.25* needed number*/
X else if(P_ASOLD *4L > 5L*ideal){
***************
*** 592,603 ****
X diff=((4L*P_ASOLD)-(5L*ideal))/4L;
X #ifdef DEBUG
X printf("\tsplit garrison of %d men\n",diff);
! #endif DEBUG
X free=FALSE;
X P_ASOLD-=diff;
X #ifdef DEBUG
X if(P_ASOLD < 0) printf("error... subtracting %d from %d\n",diff,P_ASOLD);
! #endif DEBUG
X curntn->tmil-=diff;
X curntn->tciv+=diff;
X sct[curntn->capx][curntn->capy].people+=diff;
--- 592,603 ----
X diff=((4L*P_ASOLD)-(5L*ideal))/4L;
X #ifdef DEBUG
X printf("\tsplit garrison of %d men\n",diff);
! #endif /* DEBUG */
X free=FALSE;
X P_ASOLD-=diff;
X #ifdef DEBUG
X if(P_ASOLD < 0) printf("error... subtracting %d from %d\n",diff,P_ASOLD);
! #endif /* DEBUG */
X curntn->tmil-=diff;
X curntn->tciv+=diff;
X sct[curntn->capx][curntn->capy].people+=diff;
***************
*** 610,616 ****
X #ifdef DEBUG
X else printf("\tno action - P_ASOLD (%d) ~= ideal (%d)\n",P_ASOLD,ideal);
X printf("\tFinal Garrison Army %d (%s) type is %s men is %d\n",armynum,curntn->name,*(unittype+(P_ATYPE)),P_ASOLD);
! #endif DEBUG
X
X /*build ships and/or armies*/
X done=FALSE;
--- 610,616 ----
X #ifdef DEBUG
X else printf("\tno action - P_ASOLD (%d) ~= ideal (%d)\n",P_ASOLD,ideal);
X printf("\tFinal Garrison Army %d (%s) type is %s men is %d\n",armynum,curntn->name,*(unittype+(P_ATYPE)),P_ASOLD);
! #endif /* DEBUG */
X
X /*build ships and/or armies*/
X done=FALSE;
***************
*** 618,624 ****
X if(curntn->tgold<0) { ideal*=4; ideal/=5; }
X #ifdef DEBUG
X printf("\t%s total military is %d -> ideal is %d\n",curntn->name,curntn->tmil,ideal);
! #endif DEBUG
X check();
X
X /* find leader and place on RULE in capitol */
--- 618,624 ----
X if(curntn->tgold<0) { ideal*=4; ideal/=5; }
X #ifdef DEBUG
X printf("\t%s total military is %d -> ideal is %d\n",curntn->name,curntn->tmil,ideal);
! #endif /* DEBUG */
X check();
X
X /* find leader and place on RULE in capitol */
***************
*** 642,648 ****
X &&( sct[P_AXLOC][P_AYLOC].owner == country )) {
X #ifdef DEBUG
X printf("\tadding %d men to weakened army %d\n",TAKESECTOR+20-P_ASOLD,armynum);
! #endif DEBUG
X if(magic(country,WARRIOR)==TRUE) /* WARRIOR power */
X curntn->tgold-=((TAKESECTOR+20-P_ASOLD)*
X *(u_encost + (P_ATYPE%UTYPE))) / 2;
--- 642,648 ----
X &&( sct[P_AXLOC][P_AYLOC].owner == country )) {
X #ifdef DEBUG
X printf("\tadding %d men to weakened army %d\n",TAKESECTOR+20-P_ASOLD,armynum);
! #endif /* DEBUG */
X if(magic(country,WARRIOR)==TRUE) /* WARRIOR power */
X curntn->tgold-=((TAKESECTOR+20-P_ASOLD)*
X *(u_encost + (P_ATYPE%UTYPE))) / 2;
***************
*** 666,672 ****
X if(P_ASOLD>0){
X #ifdef DEBUG
X printf("\tnot enough soldiers - build new army %d with %d men\n",armynum,P_ASOLD);
! #endif DEBUG
X curntn->metals-=(P_ASOLD* *(u_enmetal + (P_ATYPE%UTYPE)));
X P_AXLOC= curntn->capx;
X P_AYLOC= curntn->capy;
--- 666,672 ----
X if(P_ASOLD>0){
X #ifdef DEBUG
X printf("\tnot enough soldiers - build new army %d with %d men\n",armynum,P_ASOLD);
! #endif /* DEBUG */
X curntn->metals-=(P_ASOLD* *(u_enmetal + (P_ATYPE%UTYPE)));
X P_AXLOC= curntn->capx;
X P_AYLOC= curntn->capy;
***************
*** 701,707 ****
X ||(ISCITY(sct[P_AXLOC][P_AYLOC].designation)))){
X #ifdef DEBUG
X printf("\ttoo many soldiers eliminate army %d (%d men)\n",armynum,P_ASOLD);
! #endif DEBUG
X diff-=P_ASOLD;
X sct[P_AXLOC][P_AYLOC].people+=P_ASOLD;
X curntn->tmil -= P_ASOLD;
--- 701,707 ----
X ||(ISCITY(sct[P_AXLOC][P_AYLOC].designation)))){
X #ifdef DEBUG
X printf("\ttoo many soldiers eliminate army %d (%d men)\n",armynum,P_ASOLD);
! #endif /* DEBUG */
X diff-=P_ASOLD;
X sct[P_AXLOC][P_AYLOC].people+=P_ASOLD;
X curntn->tmil -= P_ASOLD;
***************
*** 714,720 ****
X check();
X #ifdef DEBUG
X printf("\twhew... new tmil is %d\n",curntn->tmil);
! #endif DEBUG
X
X /*resize armies */
X for(armynum=1;armynum<MAXARM;armynum++) if(P_ATYPE < MINLEADER) {
--- 714,720 ----
X check();
X #ifdef DEBUG
X printf("\twhew... new tmil is %d\n",curntn->tmil);
! #endif /* DEBUG */
X
X /*resize armies */
X for(armynum=1;armynum<MAXARM;armynum++) if(P_ATYPE < MINLEADER) {
***************
*** 730,736 ****
X #ifdef DEBUG
X printf("\tSplitting %ld troops from army %d forming %s army %d \n"
X ,P_ASOLD,armynum,unittype[P_ATYPE],i);
! #endif DEBUG
X curntn->arm[i].sold = P_ASOLD;
X curntn->arm[i].unittyp = P_ATYPE;
X curntn->arm[i].smove = P_AMOVE;
--- 730,736 ----
X #ifdef DEBUG
X printf("\tSplitting %ld troops from army %d forming %s army %d \n"
X ,P_ASOLD,armynum,unittype[P_ATYPE],i);
! #endif /* DEBUG */
X curntn->arm[i].sold = P_ASOLD;
X curntn->arm[i].unittyp = P_ATYPE;
X curntn->arm[i].smove = P_AMOVE;
***************
*** 758,764 ****
X #ifdef DEBUG
X printf("\tMerge %ld men from army %d to make %ld troops in %s army %d \n"
X ,P_ASOLD,armynum,curntn->arm[i].sold,unittype[P_ATYPE],i);
! #endif DEBUG
X P_ASOLD=0;
X }
X
--- 758,764 ----
X #ifdef DEBUG
X printf("\tMerge %ld men from army %d to make %ld troops in %s army %d \n"
X ,P_ASOLD,armynum,curntn->arm[i].sold,unittype[P_ATYPE],i);
! #endif /* DEBUG */
X P_ASOLD=0;
X }
X
***************
*** 809,815 ****
X #ifdef DEBUG
X printf("\tnow in sector %d,%d\n",x,y);
X printf("\tadding %ld troops to %s army %d (now %ld men - populace %ld)\n",ideal-P_ASOLD,unittype[P_ATYPE%UTYPE],armynum,ideal,sct[x][y].people);
! #endif DEBUG
X P_ASOLD=ideal;
X P_ASTAT=MILITIA;
X }
--- 809,815 ----
X #ifdef DEBUG
X printf("\tnow in sector %d,%d\n",x,y);
X printf("\tadding %ld troops to %s army %d (now %ld men - populace %ld)\n",ideal-P_ASOLD,unittype[P_ATYPE%UTYPE],armynum,ideal,sct[x][y].people);
! #endif /* DEBUG */
X P_ASOLD=ideal;
X P_ASTAT=MILITIA;
X }
***************
*** 1086,1092 ****
X }
X }
X }
! #endif SPEW
X /*move units */
X /*are they at war with any normal countries*/
X peace=0;
--- 1086,1092 ----
X }
X }
X }
! #endif /* SPEW */
X /*move units */
X /*are they at war with any normal countries*/
X peace=0;
***************
*** 1182,1188 ****
X for(loop=1;loop<5;loop++) {
X #ifdef DEBUG
X printf("\tnpcredes(): country %s gold=%d metal=%d, city=%d hunger=%f\n",curntn->name,goldthresh,metalthresh,citythresh,hunger);
! #endif DEBUG
X
X useful=FALSE;
X for(x=stx;x<endx;x++) for(y=sty;y<endy;y++)
--- 1182,1188 ----
X for(loop=1;loop<5;loop++) {
X #ifdef DEBUG
X printf("\tnpcredes(): country %s gold=%d metal=%d, city=%d hunger=%f\n",curntn->name,goldthresh,metalthresh,citythresh,hunger);
! #endif /* DEBUG */
X
X useful=FALSE;
X for(x=stx;x<endx;x++) for(y=sty;y<endy;y++)
***************
*** 1649,1655 ****
X
X #ifdef DEBUG
X printf("atkattr()\n");
! #endif DEBUG
X
X n_unowned();
X
--- 1649,1655 ----
X
X #ifdef DEBUG
X printf("atkattr()\n");
! #endif /* DEBUG */
X
X n_unowned();
X
***************
*** 1672,1678 ****
X int nation;
X #ifdef DEBUG
X printf("atkattr()\n");
! #endif DEBUG
X
X n_unowned();
X
--- 1672,1678 ----
X int nation;
X #ifdef DEBUG
X printf("atkattr()\n");
! #endif /* DEBUG */
X
X n_unowned();
X
***************
*** 1705,1711 ****
X {
X #ifdef DEBUG
X printf("pceattr()\n");
! #endif DEBUG
X n_unowned();
X n_unowned();
X n_unowned();
--- 1705,1711 ----
X {
X #ifdef DEBUG
X printf("pceattr()\n");
! #endif /* DEBUG */
X n_unowned();
X n_unowned();
X n_unowned();
***************
*** 1713,1716 ****
X n_toofar();
X n_survive();
X }
! #endif NPC
--- 1713,1716 ----
X n_toofar();
X n_survive();
X }
! #endif /* NPC */
diff -cr ../oldconq4/oMakefile ./oMakefile
*** ../oldconq4/oMakefile Thu Jul 9 19:10:44 1992
--- ./oMakefile Sat Aug 11 13:04:14 1990
***************
*** 1,11 ****
! # conquer: Copyright (c) 1988 by Edward M Barlow
X #
X # BY CHANGING THIS FILE, YOU AGREE TO ABIDE BY THE LIMITATIONS STATED IN
X # THE LIMITED USE CONTRACT CONTAINED IN THE FILE "header.h"
X #
X MAKE = /bin/make
X CC = /bin/cc
! RM = /bin/rm -f
X
X # LN must be "ln -s" if source, data, and default span disks
X LN = ln
--- 1,20 ----
! # conquer: Copyright (c) 1989 by Edward M Barlow
X #
X # BY CHANGING THIS FILE, YOU AGREE TO ABIDE BY THE LIMITATIONS STATED IN
X # THE LIMITED USE CONTRACT CONTAINED IN THE FILE "header.h"
X #
+ # This makefile has been modified to allow compilation using
+ # a parallelized make program. It has been used successfully
+ # on an Encore Multimax parallel computer with both 4 and
+ # 6 cpus.
+ #
+ # It should pose no problems for non parallel makes.
+ #
+ # Please report any problems to adb@bucsf.bu.edu
+ #
X MAKE = /bin/make
X CC = /bin/cc
! RM = /bin/rm -f
X
X # LN must be "ln -s" if source, data, and default span disks
X LN = ln
***************
*** 12,227 ****
X CP = cp
X NULL = 2>/dev/null
X
X # This should be installed by whomever you want to own the game.
X # I recommend "games" or "root".
X
X #if the final link does not compile change to the line below
! #LIBRARIES = -lcurses -ltermcap
! LIBRARIES = -lcurses
X
X # this is the name of the user executable
! # the user executable contains commands for the games players
! GAME = conquer
X # this is the name of the administrative executable
! # the administrative executable contains commands for the game super user
X ADMIN = conqrun
X
! # This directory is where the executables will be stored
! # This would be the equivalent of /usr/games
! EXEDIR = /c28/smile/game/runv
!
! # GAME IDENTIFICATION
! # GAMEID is the game identifier
! # DATA is the directory where an individual Conquer game data will be
! # stored. It is the directory you use in the -d option of the game.
! # "make new_game" will build a world in that directory. The current
! # game will be automatically executed upon login (no need for -d)
! # but if other games are compiled, you need to use -d (ie. the
! # game automatically looks at the DATA directory it was compiled with.
X GAMEID = 1
! DATA = $(EXEDIR)/lib$(GAMEID)
X
! # The following CFLAGS should be set by a normal user
X "lack of metal", "lack of jewels", "land not owned",
X "unavailable or destroyed armies",
X "unavailable or destoryed navies"};
! #endif ADMIN
X #ifdef CONQUER
X /* Use this when you wish to bid something */
X char *buylist[NUMPRODUCTS] = { "Bid how much gold? ", "Bid how much food? ",
--- 53,59 ----
X "lack of metal", "lack of jewels", "land not owned",
X "unavailable or destroyed armies",
X "unavailable or destoryed navies"};
! #endif /* ADMIN */
X #ifdef CONQUER
X /* Use this when you wish to bid something */
X char *buylist[NUMPRODUCTS] = { "Bid how much gold? ", "Bid how much food? ",
***************
*** 474,480 ****
X if (country!=0 && country!=natn[holdint])
X #else
X if (country != natn[holdint])
! #endif OGOD
X {
X tradeerr("That is not your item");
X return;
--- 474,480 ----
X if (country!=0 && country!=natn[holdint])
X #else
X if (country != natn[holdint])
! #endif /* OGOD */
X {
X tradeerr("That is not your item");
X return;
***************
*** 622,628 ****
X }
X return(hold);
X }
! #endif CONQUER
X
X /* set aside things that are up for bid */
X void
--- 622,628 ----
X }
X return(hold);
X }
! #endif /* CONQUER */
X
X /* set aside things that are up for bid */
X void
***************
*** 863,869 ****
X fclose(fp[count]);
X }
X }
! #endif ADMIN
X
X #ifdef CONQUER
X /* routine to determine whether or not an army type is tradable */
--- 863,869 ----
X fclose(fp[count]);
X }
X }
! #endif /* ADMIN */
X
X #ifdef CONQUER
X /* routine to determine whether or not an army type is tradable */
***************
*** 879,885 ****
X country=oldcntry;
X return(returnval);
X }
! #endif CONQUER
X
X /* routine to determine commercial value of army */
X long armyvalue(cntry,unit)
--- 879,885 ----
X country=oldcntry;
X return(returnval);
X }
! #endif /* CONQUER */
X
X /* routine to determine commercial value of army */
X long armyvalue(cntry,unit)
***************
*** 1108,1112 ****
X
X } /* loop through commodities */
X }
! #endif ADMIN
! #endif TRADE
--- 1108,1112 ----
X
X } /* loop through commodities */
X }
! #endif /* ADMIN */
! #endif /* TRADE */
diff -cr ../oldconq4/update.c ./update.c
*** ../oldconq4/update.c Thu Jul 9 19:29:34 1992
--- ./update.c Thu Jul 9 18:23:06 1992
***************
*** 74,80 ****
X
X #ifdef RANEVENT
X randomevent(); /*run random events after setting movements */
! #endif RANEVENT
X
X updsectors(); /* for whole map, update one sector at a time*/
X updcomodities();/* commodities & food, metal, jewels */
--- 74,80 ----
X
X #ifdef RANEVENT
X randomevent(); /*run random events after setting movements */
! #endif /* RANEVENT */
X
X updsectors(); /* for whole map, update one sector at a time*/
X updcomodities();/* commodities & food, metal, jewels */
***************
*** 94,100 ****
X
X #ifdef CHEAT
X cheat();
! #endif CHEAT
X
X score(); /* score all nations */
X
--- 94,100 ----
X
X #ifdef CHEAT
X cheat();
! #endif /* CHEAT */
X
X score(); /* score all nations */
X
***************
*** 523,529 ****
X }
X }
X }
! #endif CHEAT
X
X
X /****************************************************************/
--- 523,529 ----
X }
X }
X }
! #endif /* CHEAT */
X
X
X /****************************************************************/
***************
*** 580,586 ****
X disarray=FALSE;
X #ifdef TRADE
X if(isntn(curntn->active)) checktrade();
! #endif TRADE
X
X /*if execute is 0 and PC nation then they did not move*/
X if((execute(TRUE)==0)&&(ispc(curntn->active))){
--- 580,586 ----
X disarray=FALSE;
X #ifdef TRADE
X if(isntn(curntn->active)) checktrade();
! #endif /* TRADE */
X
X /*if execute is 0 and PC nation then they did not move*/
X if((execute(TRUE)==0)&&(ispc(curntn->active))){
***************
*** 616,622 ****
X if((x=takeover(1,0))==1)
X printf("SUCCESSFUL TAKEOVER OF %d by %s",x,curntn->name);
X }
! #endif ORCTAKE
X #endif /*NPC*/
X }
X
--- 616,622 ----
X if((x=takeover(1,0))==1)
X printf("SUCCESSFUL TAKEOVER OF %d by %s",x,curntn->name);
X }
! #endif /* ORCTAKE */
X #endif /*NPC*/
X }
X
***************
*** 630,636 ****
X }
X #ifdef DEBUG
X printf("checking for leader in nation %s: armynum=%d\n",curntn->name,armynum);
! #endif DEBUG
X
X if(disarray == TRUE) {
X if(rand()%100 < 30) { /* new leader takes over */
--- 630,636 ----
X }
X #ifdef DEBUG
X printf("checking for leader in nation %s: armynum=%d\n",curntn->name,armynum);
! #endif /* DEBUG */
X
X if(disarray == TRUE) {
X if(rand()%100 < 30) { /* new leader takes over */
***************
*** 782,788 ****
X if((P_ASOLD>0)&&(sct[P_AXLOC][P_AYLOC].altitude==WATER))
X printf("ERROR line %d... %s army %d in water (army %d: x: %d y: %d)\n",__LINE__,ntn[country].name,armynum,armynum-1, ntn[country].arm[armynum-1].xloc, ntn[country].arm[armynum-1].yloc);
X }
! #endif DEBUG
X }
X
X /****************************************************************/
--- 782,788 ----
X if((P_ASOLD>0)&&(sct[P_AXLOC][P_AYLOC].altitude==WATER))
X printf("ERROR line %d... %s army %d in water (army %d: x: %d y: %d)\n",__LINE__,ntn[country].name,armynum,armynum-1, ntn[country].arm[armynum-1].xloc, ntn[country].arm[armynum-1].yloc);
X }
! #endif /* DEBUG */
X }
X
X /****************************************************************/
***************
*** 836,842 ****
X fprintf(fnews,"3.\tarea captured by %s from %s\n",curntn->name,ntn[sptr->owner].name);
X #else
X fprintf(fnews,"3.\tarea %d,%d captured by %s from %s\n",P_AXLOC,P_AYLOC,curntn->name,ntn[sptr->owner].name);
! #endif HIDELOC
X }
X sptr->owner=country;
X curntn->popularity++;
--- 836,842 ----
X fprintf(fnews,"3.\tarea captured by %s from %s\n",curntn->name,ntn[sptr->owner].name);
X #else
X fprintf(fnews,"3.\tarea %d,%d captured by %s from %s\n",P_AXLOC,P_AYLOC,curntn->name,ntn[sptr->owner].name);
! #endif /* HIDELOC */
X }
X sptr->owner=country;
X curntn->popularity++;
***************
*** 1288,1294 ****
X fprintf(fnews,"3.\tstorm sinks %s fleet at sea\n",curntn->name);
X #else
X fprintf(fnews,"3.\tstorm sinks %s fleet in %d,%d\n",curntn->name,P_NXLOC,P_NYLOC);
! #endif HIDELOC
X P_NWSHP=0;
X P_NMSHP=0;
X P_NGSHP=0;
--- 1288,1294 ----
X fprintf(fnews,"3.\tstorm sinks %s fleet at sea\n",curntn->name);
X #else
X fprintf(fnews,"3.\tstorm sinks %s fleet in %d,%d\n",curntn->name,P_NXLOC,P_NYLOC);
! #endif /* HIDELOC */
X P_NWSHP=0;
X P_NMSHP=0;
X P_NGSHP=0;
***************
*** 1339,1345 ****
X #else
X fprintf(fnews,"2.\tNation %s under siege in sector %d,%d\n",
X curntn->name,siegex[army2],siegey[army2]);
! #endif HIDELOC
X if(ispc(curntn->active)) {
X if (mailopen( country )!=(-1)) {
X fprintf(fm, "Message to %s from Conquer\n\n",ntn[nation].name);
--- 1339,1345 ----
X #else
X fprintf(fnews,"2.\tNation %s under siege in sector %d,%d\n",
X curntn->name,siegex[army2],siegey[army2]);
! #endif /* HIDELOC */
X if(ispc(curntn->active)) {
X if (mailopen( country )!=(-1)) {
X fprintf(fm, "Message to %s from Conquer\n\n",ntn[nation].name);
***************
*** 1404,1410 ****
X fprintf(fnews,"2.\tfamine hits town in %s.\n",curntn->name);
X #else
X fprintf(fnews,"2.\tfamine hits town at %d,%d in %s.\n",x,y,curntn->name);
! #endif HIDELOC
X printf("famine hits town at %d,%d in %s.\n",x,y,curntn->name);
X if(ispc(curntn->active)){
X if (mailopen( country )!=(-1)) {
--- 1404,1410 ----
X fprintf(fnews,"2.\tfamine hits town in %s.\n",curntn->name);
X #else
X fprintf(fnews,"2.\tfamine hits town at %d,%d in %s.\n",x,y,curntn->name);
! #endif /* HIDELOC */
X printf("famine hits town at %d,%d in %s.\n",x,y,curntn->name);
X if(ispc(curntn->active)){
X if (mailopen( country )!=(-1)) {
Common subdirectories: ../oldconq4/utilities and ./utilities
SHAR_EOF
chmod 0644 patches11 ||
echo 'restore of patches11 failed'
Wc_c="`wc -c < 'patches11'`"
test 103096 -eq "$Wc_c" ||
echo 'patches11: original size 103096, current size' "$Wc_c"