|
@@ -141,19 +141,11 @@ void writeOutPacketU32(OutPacket* out, u32 u) {
|
|
}
|
|
}
|
|
|
|
|
|
void writeOutPacketI8(OutPacket* out, i8 i) {
|
|
void writeOutPacketI8(OutPacket* out, i8 i) {
|
|
- if(i < 0) {
|
|
|
|
- writeOutPacketU8(out, (u8)((i32)i + (i32)128));
|
|
|
|
- } else {
|
|
|
|
- writeOutPacketU8(out, (u8)((u32)i + (u32)128));
|
|
|
|
- }
|
|
|
|
|
|
+ writeOutPacketU8(out, (u8)((i32)i + (i32)128));
|
|
}
|
|
}
|
|
|
|
|
|
void writeOutPacketI16(OutPacket* out, i16 i) {
|
|
void writeOutPacketI16(OutPacket* out, i16 i) {
|
|
- if(i < 0) {
|
|
|
|
- writeOutPacketU16(out, (u16)((i32)i + (i32)32768));
|
|
|
|
- } else {
|
|
|
|
- writeOutPacketU16(out, (u16)((u32)i + (u32)32768));
|
|
|
|
- }
|
|
|
|
|
|
+ writeOutPacketU16(out, (u16)((i32)i + (i32)32768));
|
|
}
|
|
}
|
|
|
|
|
|
void writeOutPacketI32(OutPacket* out, i32 i) {
|
|
void writeOutPacketI32(OutPacket* out, i32 i) {
|