home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / GAMECOL2.MOD < prev    next >
Text File  |  1990-03-17  |  816b  |  40 lines

  1. Filo #1 @5252
  2. Thu Mar 15 11:31:01 1990
  3.  
  4. void show_chains(int *mapp, int *map)
  5. {
  6.   int abort,i,i1,c,l;
  7.   char s[81],s1[3],s2[3];
  8.  
  9.   c=0;
  10.   abort=0;
  11.   outstr("\x0c");
  12.   nl();
  13.   strcpy(s," ");
  14.   c=(thisuser.screenchars-strlen(syscfg.systemname)-14);
  15.   if (c>0)
  16.     for (l=1;l<(c/2-1);l++)
  17.       strcat(s," ");
  18.   prt(0,s);
  19.   prt(4,syscfg.systemname);
  20.   prt(4," On-Line Games");
  21.   nl(); nl();
  22.   c=1;
  23.   for (i=0; (i<*mapp) && (!abort) && (!hangup); i+=2) {
  24.     ansic(c+1);
  25.     itoa(i+1,s1,10);
  26.     if ((i+1)>=*mapp)
  27.       sprintf(s,"%-2s. %-35s",s1,chains[map[i]].description);
  28.     else {
  29.       itoa(i+2,s2,10);
  30.       sprintf(s,"%-2s. %-35s %-2s. %-35s",s1,chains[map[i]].description,
  31.     s2,chains[map[i+1]].description);
  32.     }
  33.     pla(s,&abort);
  34.     c^=1;
  35.   }
  36.   nl();
  37.   ansic(3);
  38. }
  39.  
  40.