Commit bc8e2fea authored by Chunchi Che's avatar Chunchi Che

fix small

parent e3c3e4fd
Pipeline #23651 passed with stages
in 12 minutes and 12 seconds
...@@ -17,10 +17,10 @@ export default (data: Uint8Array) => { ...@@ -17,10 +17,10 @@ export default (data: Uint8Array) => {
// TODO: use `BufferIO` // TODO: use `BufferIO`
const pT = dataView.getUint8(0); const pT = dataView.getUint8(0);
const playerType = const playerType =
(pT & 0xf) <= 0 (pT & 0xf0) > 0
? ygopro.StocGameMessage.MsgStart.PlayerType.FirstStrike
: (pT & 0xf0) > 0
? ygopro.StocGameMessage.MsgStart.PlayerType.Observer ? ygopro.StocGameMessage.MsgStart.PlayerType.Observer
: (pT & 0xf) <= 0
? ygopro.StocGameMessage.MsgStart.PlayerType.FirstStrike
: ygopro.StocGameMessage.MsgStart.PlayerType.SecondStrike; : ygopro.StocGameMessage.MsgStart.PlayerType.SecondStrike;
let offset = 1; let offset = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment