Difference for main/bmread.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 19
 
Line 19
  * Routines to parse bitmaps.tbl   * Routines to parse bitmaps.tbl
  *    *
  * $Log$   * $Log$
    * Revision 1.3  2003/03/09 06:34:09  donut
    * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned
    *
  * Revision 1.2  1999/09/02 13:23:11  sekmu   * Revision 1.2  1999/09/02 13:23:11  sekmu
  * remove warning in editor compile   * remove warning in editor compile
  *   *
Line 158
 
Line 161
 static short frames;  static short frames;
 static float time;  static float time;
 static int hit_sound = -1;  static int hit_sound = -1;
 static byte bm_flag = BM_NONE;  static sbyte bm_flag = BM_NONE;
 static int abm_flag = 0;  static int abm_flag = 0;
 static int rod_flag = 0;  static int rod_flag = 0;
 static short wall_open_sound, wall_close_sound,wall_explodes,wall_blastable, wall_hidden;  static short wall_open_sound, wall_close_sound,wall_explodes,wall_blastable, wall_hidden;
Line 696
 
Line 699
 }  }
 #endif  #endif
   
 void set_lighting_flag(byte *bp)  void set_lighting_flag(sbyte *bp)
 {  {
  if (vlighting < 0)   if (vlighting < 0)
  *bp |= BM_FLAG_NO_LIGHTING;   *bp |= BM_FLAG_NO_LIGHTING;
Line 984
 
Line 987
 }  }
   
 // ------------------------------------------------------------------------------  // ------------------------------------------------------------------------------
 void get4byte(byte *bytep)  void get4byte(sbyte *bytep)
 {  {
  char *curtext;   char *curtext;
  int i;   int i;
Line 2022
 
Line 2025
  fwrite( AltSounds, sizeof(ubyte), MAX_SOUNDS, fp );   fwrite( AltSounds, sizeof(ubyte), MAX_SOUNDS, fp );
   
  fwrite( &Num_total_object_types, sizeof(int), 1, fp );   fwrite( &Num_total_object_types, sizeof(int), 1, fp );
  fwrite( ObjType, sizeof(byte), MAX_OBJTYPE, fp );   fwrite( ObjType, sizeof(sbyte), MAX_OBJTYPE, fp );
  fwrite( ObjId, sizeof(byte), MAX_OBJTYPE, fp );   fwrite( ObjId, sizeof(sbyte), MAX_OBJTYPE, fp );
  fwrite( ObjStrength, sizeof(fix), MAX_OBJTYPE, fp );   fwrite( ObjStrength, sizeof(fix), MAX_OBJTYPE, fp );
   
  fwrite( &First_multi_bitmap_num, sizeof(int), 1, fp );   fwrite( &First_multi_bitmap_num, sizeof(int), 1, fp );

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