diff options
| author | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-09-07 17:56:21 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:35 +0300 |
| commit | f2bee7b519108115a63ca1cf6ef1ae5906daec72 (patch) | |
| tree | 72ccf3bd1c55c6fbc1ae247040a6ce68d0d9c3b1 /classes | |
| parent | usercmdinfo buttons complete (diff) | |
| download | sdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.tar.gz sdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.tar.bz2 sdp.go-f2bee7b519108115a63ca1cf6ef1ae5906daec72.zip | |
final commit before rewrite
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/userCmdInfo.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/userCmdInfo.go b/classes/userCmdInfo.go index 55a8546..d2de229 100644 --- a/classes/userCmdInfo.go +++ b/classes/userCmdInfo.go | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | package classes | 1 | package classes |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | ||
| 5 | |||
| 4 | "github.com/bisaxa/demoparser/utils" | 6 | "github.com/bisaxa/demoparser/utils" |
| 5 | ) | 7 | ) |
| 6 | 8 | ||
| @@ -29,8 +31,8 @@ func UserCmdInfoInit(byteArr []byte, size int32) (output UserCmdInfo) { | |||
| 29 | failedCount := 0 | 31 | failedCount := 0 |
| 30 | looped := 0 | 32 | looped := 0 |
| 31 | classIndex := 0 | 33 | classIndex := 0 |
| 32 | // fmt.Println(byteArr) | 34 | //fmt.Println(byteArr) |
| 33 | // fmt.Printf("%08b", byteArr) | 35 | fmt.Printf("%08b\n", byteArr) |
| 34 | for i := 0; i < 9; i++ { | 36 | for i := 0; i < 9; i++ { |
| 35 | if successCount+failedCount > 7 { | 37 | if successCount+failedCount > 7 { |
| 36 | failedCount = -successCount | 38 | failedCount = -successCount |