funpackf(tfile, "Bf", &twist[j][i]);
}
for(j=0;j<joints;j++){
- funpackf(tfile, "Bb", &onground[j][i]);
+ unsigned char uch;
+ funpackf(tfile, "Bb", &uch);
+ onground[j][i] = (uch != 0);
}
funpackf(tfile, "Bf", &speed[i]);
}
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(float);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
}
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(float);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);
}
}
}
- lSize=sizeof(bool);
+ lSize=1;//sizeof(bool);
fseek ( tfile, lSize, SEEK_CUR);
lSize=sizeof(int);
fseek ( tfile, lSize, SEEK_CUR);