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/go.cpp

    r2 r17  
    6060{
    6161  load(fp,state_remap);
    62   allow_dir=read_short(fp);
     62  allow_dir=read_uint16(fp);
    6363}
    6464
     
    118118{
    119119  load(fp,state_remap); 
    120   dir=read_short(fp); 
    121   speed=read_short(fp); 
     120  dir=read_uint16(fp); 
     121  speed=read_uint16(fp); 
    122122}
    123123
     
    125125{
    126126  game_object::save(fp);
    127   write_short(fp,dir);   
    128   write_short(fp,speed);   
     127  write_uint16(fp,dir);   
     128  write_uint16(fp,speed);   
    129129}
    130130
     
    268268void sensor::save(FILE *fp)
    269269{ game_object::save(fp);
    270   write_short(fp,xrange);
    271   write_short(fp,yrange);
    272   write_short(fp,signal); 
    273 
    274   write_byte(fp,strlen(aname())+1);
     270  write_uint16(fp,xrange);
     271  write_uint16(fp,yrange);
     272  write_uint16(fp,signal); 
     273
     274  write_uint8(fp,strlen(aname())+1);
    275275  fwrite(aname(),strlen(aname())+1,1,fp); 
    276276}
     
    279279{
    280280  load(fp,state_remap);
    281   xrange=read_short(fp);
    282   yrange=read_short(fp);
    283   signal=read_short(fp); 
     281  xrange=read_uint16(fp);
     282  yrange=read_uint16(fp);
     283  signal=read_uint16(fp); 
    284284
    285285  char name[200];
    286   fread(name,read_byte(fp),1,fp);
     286  fread(name,read_uint8(fp),1,fp);
    287287  get_activate(name);
    288288}
Note: See TracChangeset for help on using the changeset viewer.