home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / games / gb / 1358 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!gateway
  2. From: deragon@JETHRO.CS.NYU.EDU (John Deragon)
  3. Newsgroups: alt.games.gb
  4. Subject: Duh!
  5. Date: 22 Dec 1992 03:49:44 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 43
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <9212220947.AA14087@JETHRO.CS.NYU.EDU>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12.  
  13.  
  14.     Sorry bout that... I posted the wrong context diff in the previous
  15. message.  (it is 4am after all!)
  16.  
  17.  
  18.     This is the correct one!
  19.         -- Seeker
  20.  
  21. ----- BEGIN (CORRECT) CONTEXT DIFF -----
  22.  
  23. *** shlmisc.c    Tue Dec 22 04:42:20 1992
  24. --- oldshlmisc.c    Tue Dec 22 04:42:13 1992
  25. ***************
  26. *** 333,348 ****
  27.   int do_shiplist(shiptype **s, int *nextshipno)
  28.   {
  29.       int shipno;
  30.   
  31. !     if (!(shipno = *nextshipno))
  32. !         return 0;
  33. !     if (!getship(s, shipno))    /* allocate memory, free in loop */
  34. !         return 0;
  35. !     if (!(*s)->alive) /* this prevents it from returning a dead ship */
  36. !         return 0;      /* ie: try to scrap a dead ship   JPD          */
  37.       *nextshipno = (*s)->nextship;
  38.       return shipno;
  39.   }
  40. --- 333,343 ----
  41.   int do_shiplist(shiptype **s, int *nextshipno)
  42.   {
  43.       int shipno;
  44. +     if(!(shipno = *nextshipno))
  45. +     return 0;
  46.   
  47. !     if(!getship(s, shipno))    /* allocate memory, free in loop */
  48. !     return 0;
  49.       *nextshipno = (*s)->nextship;
  50.       return shipno;
  51.   }
  52.