Difference for main/bm.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 19
 
Line 19
  * Bitmap and palette loading functions.   * Bitmap and palette loading functions.
  *   *
  * $Log$   * $Log$
  * Revision 1.1  1999/06/14 22:05:21  donut   * Revision 1.2  1999/10/14 04:48:20  donut
  * Initial revision   * alpha fixes, and gl_font args
    *
    * Revision 1.1.1.1  1999/06/14 22:05:21  donut
    * Import of d1x 1.37 source.
  *   *
  * Revision 2.3  1995/03/14  16:22:04  john   * Revision 2.3  1995/03/14  16:22:04  john
  * Added cdrom alternate directory stuff.   * Added cdrom alternate directory stuff.
Line 47
 
Line 50
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
   #include <string.h>
   
 #include "types.h"  #include "types.h"
 #include "inferno.h"  #include "inferno.h"
Line 159
 
Line 163
  cfread( Powerup_info, sizeof(powerup_type_info), MAX_POWERUP_TYPES, fp );   cfread( Powerup_info, sizeof(powerup_type_info), MAX_POWERUP_TYPES, fp );
    
  cfread( &N_polygon_models, sizeof(int), 1, fp );   cfread( &N_polygon_models, sizeof(int), 1, fp );
   
   #ifdef __alpha__
          for (i=0; i<N_polygon_models; i++ ) {
                  cfread( &Polygon_models[i], sizeof(polymodel)-4, 1, fp );
                  /* this is a dirty hack */
                  memmove ((char *)(&Polygon_models[i].model_data)+4, &Polygon_models[i].model_data, sizeof (polymodel)-12);
          }
   #else
  cfread( Polygon_models, sizeof(polymodel), N_polygon_models, fp );   cfread( Polygon_models, sizeof(polymodel), N_polygon_models, fp );
   #endif   
   
  for (i=0; i<N_polygon_models; i++ ) {   for (i=0; i<N_polygon_models; i++ ) {
  Polygon_models[i].model_data = malloc(Polygon_models[i].model_data_size);   Polygon_models[i].model_data = malloc(Polygon_models[i].model_data_size);

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2