int channel = MSG_C2S;
WriteHeader(channel, fpsreport);
- WriteShort(channel, bound(0, rint(fps), 65535)); // prevent insane fps values
+ WriteShort(channel, bound(0, rint(fps), 32767)); // prevent insane fps values
}
}
WriteShort(MSG_ENTITY, compressShortVector(this.dest));
WriteShort(MSG_ENTITY, this.count);
WriteByte(MSG_ENTITY, this.cnt);
- WriteShort(MSG_ENTITY, bound(0, this.fade_end, 65535));
+ WriteShort(MSG_ENTITY, bound(0, this.fade_end, 32767));
return true;
}
if(sf & 0x80)
{
WriteShort(MSG_ENTITY, this.lodmodelindex0);
- WriteShort(MSG_ENTITY, bound(0, this.loddistance1, 65535));
+ WriteShort(MSG_ENTITY, bound(0, this.loddistance1, 32767));
WriteShort(MSG_ENTITY, this.lodmodelindex1);
- WriteShort(MSG_ENTITY, bound(0, this.loddistance2, 65535));
+ WriteShort(MSG_ENTITY, bound(0, this.loddistance2, 32767));
WriteShort(MSG_ENTITY, this.lodmodelindex2);
}
else
WriteVector(MSG_ENTITY, this.movedir);
WriteByte(MSG_ENTITY, floor(this.lip * 255));
}
- WriteShort(MSG_ENTITY, bound(0, this.fade_start, 65535));
- WriteShort(MSG_ENTITY, bound(0, this.fade_end, 65535));
+ WriteShort(MSG_ENTITY, bound(0, this.fade_start, 32767));
+ WriteShort(MSG_ENTITY, bound(0, this.fade_end, 32767));
WriteByte(MSG_ENTITY, floor(this.alpha_max * 256));
WriteByte(MSG_ENTITY, floor(this.alpha_min * 256));
WriteByte(MSG_ENTITY, this.inactive);