Skip to content

Commit ffab574

Browse files
committed
style: fix code style issues with gofmt
1 parent e04c362 commit ffab574

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/input.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ type NetConnection struct {
19941994
st NetState
19951995
sendEnd chan bool
19961996
recvEnd chan bool
1997-
buf [MaxSimul*2]NetBuffer // We skip attached characters here because they never have human inputs
1997+
buf [MaxSimul * 2]NetBuffer // We skip attached characters here because they never have human inputs
19981998
locIn int
19991999
remIn int
20002000
time int32
@@ -2430,7 +2430,7 @@ func (nc *NetConnection) Update() bool {
24302430
// Write inputs to replay file
24312431
if nc.recording != nil {
24322432
for i := range nc.buf {
2433-
ringIdx := nc.time&(NETBUF_NUM_FRAMES-1)
2433+
ringIdx := nc.time & (NETBUF_NUM_FRAMES - 1)
24342434
binary.Write(nc.recording, binary.LittleEndian, &nc.buf[i].buf[ringIdx])
24352435
binary.Write(nc.recording, binary.LittleEndian, &nc.buf[i].axisBuf[ringIdx])
24362436
}
@@ -2459,8 +2459,8 @@ func (nc *NetConnection) Update() bool {
24592459

24602460
type ReplayFile struct {
24612461
file *os.File
2462-
ibit [MaxSimul*2]InputBits
2463-
iaxes [MaxSimul*2][6]int8
2462+
ibit [MaxSimul * 2]InputBits
2463+
iaxes [MaxSimul * 2][6]int8
24642464
preMatchTime int32
24652465
}
24662466

0 commit comments

Comments
 (0)