aboutsummaryrefslogtreecommitdiff
path: root/messages/messages.go
diff options
context:
space:
mode:
authorBiSaXa <1669855+BiSaXa@users.noreply.github.com>2022-09-07 17:56:21 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 21:39:35 +0300
commitf2bee7b519108115a63ca1cf6ef1ae5906daec72 (patch)
tree72ccf3bd1c55c6fbc1ae247040a6ce68d0d9c3b1 /messages/messages.go
parentusercmdinfo buttons complete (diff)
downloadsdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.tar.gz
sdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.tar.bz2
sdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.zip
final commit before rewrite
Diffstat (limited to 'messages/messages.go')
-rw-r--r--messages/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/messages/messages.go b/messages/messages.go
index 6afa270..a2b0ebd 100644
--- a/messages/messages.go
+++ b/messages/messages.go
@@ -46,7 +46,7 @@ func ParseMessage(file *os.File) (statusCode int) {
46 consolecmd.Data = string(utils.ReadByteFromFile(file, consolecmd.Size)) 46 consolecmd.Data = string(utils.ReadByteFromFile(file, consolecmd.Size))
47 //fmt.Printf("[%d] %s\n", message.Tick, consolecmd.Data) 47 //fmt.Printf("[%d] %s\n", message.Tick, consolecmd.Data)
48 return 4 48 return 4
49 case 0x05: // Usercmd FIXME: Correct bit-packing inside classes 49 case 0x05: // Usercmd
50 var usercmd UserCmd 50 var usercmd UserCmd
51 var usercmdinfo classes.UserCmdInfo 51 var usercmdinfo classes.UserCmdInfo
52 usercmd.Cmd = int32(utils.IntFromBytes(utils.ReadByteFromFile(file, 4))) 52 usercmd.Cmd = int32(utils.IntFromBytes(utils.ReadByteFromFile(file, 4)))