replaced B with already existing byte typdef
changed int types used as booleans to qboolean