diff options
Diffstat (limited to 'pkg/messages/types/netSetConVar.go')
| -rw-r--r-- | pkg/messages/types/netSetConVar.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/messages/types/netSetConVar.go b/pkg/messages/types/netSetConVar.go index 530cb6b..03e9e0d 100644 --- a/pkg/messages/types/netSetConVar.go +++ b/pkg/messages/types/netSetConVar.go | |||
| @@ -2,7 +2,6 @@ package messages | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 5 | "github.com/pektezol/demoparser/pkg/writer" | ||
| 6 | ) | 5 | ) |
| 7 | 6 | ||
| 8 | type NetSetConVar struct { | 7 | type NetSetConVar struct { |
| @@ -18,13 +17,13 @@ type conVar struct { | |||
| 18 | func ParseNetSetConVar(reader *bitreader.Reader) NetSetConVar { | 17 | func ParseNetSetConVar(reader *bitreader.Reader) NetSetConVar { |
| 19 | length := reader.TryReadUInt8() | 18 | length := reader.TryReadUInt8() |
| 20 | convars := []conVar{} | 19 | convars := []conVar{} |
| 21 | writer.TempAppendLine("\t\tLength: %d", length) | 20 | |
| 22 | for count := 0; count < int(length); count++ { | 21 | for count := 0; count < int(length); count++ { |
| 23 | convar := conVar{ | 22 | convar := conVar{ |
| 24 | Name: reader.TryReadString(), | 23 | Name: reader.TryReadString(), |
| 25 | Value: reader.TryReadString(), | 24 | Value: reader.TryReadString(), |
| 26 | } | 25 | } |
| 27 | writer.TempAppendLine("\t\t[%d] %s: %s", count, convar.Name, convar.Value) | 26 | |
| 28 | convars = append(convars, convar) | 27 | convars = append(convars, convar) |
| 29 | } | 28 | } |
| 30 | return NetSetConVar{ | 29 | return NetSetConVar{ |