Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/include/items.hpp

    r2 r17  
    1515public : 
    1616  boundary(bFILE *fp,char *er_name);
    17   unsigned char *inside;     // tells which side of the line is on the inside
     17  uint8_t *inside;     // tells which side of the line is on the inside
    1818  boundary(boundary *p);      // flips the *inside list
    1919  ~boundary() { if (tot) jfree(inside); }
     
    2323{
    2424public :
    25   unsigned short next;
     25  uint16_t next;
    2626  image *im;
    2727  backtile(spec_entry *e, bFILE *fp);
    2828  backtile(bFILE *fp);
    29   long size() { return 2+4+im->width()*im->height(); }
     29  int32_t size() { return 2+4+im->width()*im->height(); }
    3030  ~backtile() { delete im; }
    3131} ;
     
    3535public :
    3636  trans_image *im;
    37   unsigned short next;
    38   unsigned char damage;
    39   uchar ylevel;            // for fast intersections, this is the y level offset for the ground
     37  uint16_t next;
     38  uint8_t damage;
     39  uint8_t ylevel;            // for fast intersections, this is the y level offset for the ground
    4040                           // if ground is not level this is 255
    4141  boundary *points;
     
    4444
    4545  foretile(bFILE *fp);
    46   long size() { return im->width()*im->height()+4+2+1+points->size(); }
     46  int32_t size() { return im->width()*im->height()+4+2+1+points->size(); }
    4747  ~foretile() { delete im; delete points; delete micro_image; }
    4848} ;
     
    5252public :
    5353  trans_image *forward,*backward;
    54   unsigned char hit_damage,xcfg;
    55   signed char advance;
     54  uint8_t hit_damage,xcfg;
     55  int8_t advance;
    5656  point_list *hit;
    5757  boundary *f_damage,*b_damage;
     
    6262  int height() { return forward->height(); }
    6363
    64 /*  long size(int type)         // taken from spaint items
     64/*  int32_t size(int type)         // taken from spaint items
    6565  {
    6666    if
     
    8080{
    8181  public :
    82   uchar data[256];
     82  uint8_t data[256];
    8383  ~char_tint() { ; }
    8484  char_tint(bFILE *fp);               // should be a palette entry
Note: See TracChangeset for help on using the changeset viewer.