Difference for main/piggy.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 19
 
Line 19
  * Functions for managing the pig files.   * Functions for managing the pig files.
  *    *
  * $Log$   * $Log$
    * Revision 1.5  1999/12/17 02:22:18  donut
    * Tim Riker's shareware sound fix
    *
  * Revision 1.4  1999/11/20 10:05:18  donut   * Revision 1.4  1999/11/20 10:05:18  donut
  * variable size menu patch from Jan Bobrowski.  Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM).   * variable size menu patch from Jan Bobrowski.  Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM).
  *   *
Line 877
 
Line 880
  ubyte * ptr;   ubyte * ptr;
  int i, sbytes;   int i, sbytes;
 #ifdef SHAREWARE  #ifdef SHAREWARE
 #ifdef ALLEGRO  
  int lastsize = 0;   int lastsize = 0;
 #endif  
  ubyte * lastbuf = NULL;   ubyte * lastbuf = NULL;
 #endif  #endif
   
Line 912
 
Line 913
 #ifdef ALLEGRO  #ifdef ALLEGRO
  ptr += snd->len;   ptr += snd->len;
  sbytes += snd->len;   sbytes += snd->len;
   #else
    ptr += snd->length;
    sbytes += snd->length;
   #endif
   //Arne's decompress for shareware on all soundcards - Tim@Rikers.org
 #ifdef SHAREWARE  #ifdef SHAREWARE
  if (lastsize < SoundCompressed[i]) {   if (lastsize < SoundCompressed[i]) {
      if (lastbuf) free(lastbuf);       if (lastbuf) free(lastbuf);
Line 920
 
Line 926
  cfread( lastbuf, SoundCompressed[i], 1, Piggy_fp );   cfread( lastbuf, SoundCompressed[i], 1, Piggy_fp );
  sound_decompress( lastbuf, SoundCompressed[i], snd->data );   sound_decompress( lastbuf, SoundCompressed[i], snd->data );
 #else  #else
   #ifdef ALLEGRO
                 cfread( snd->data, snd->len, 1, Piggy_fp );                  cfread( snd->data, snd->len, 1, Piggy_fp );
 #endif  
 #else  #else
  ptr += snd->length;  
                 sbytes += snd->length;  
                 cfread( snd->data, snd->length, 1, Piggy_fp );                  cfread( snd->data, snd->length, 1, Piggy_fp );
   #endif
 #endif  #endif
  }   }
  }   }

Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5