diff options
Diffstat (limited to 'pkg/messages/types/svcBspDecal.go')
| -rw-r--r-- | pkg/messages/types/svcBspDecal.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/messages/types/svcBspDecal.go b/pkg/messages/types/svcBspDecal.go index dda81dd..220f63a 100644 --- a/pkg/messages/types/svcBspDecal.go +++ b/pkg/messages/types/svcBspDecal.go | |||
| @@ -7,9 +7,9 @@ import ( | |||
| 7 | type SvcBspDecal struct { | 7 | type SvcBspDecal struct { |
| 8 | Pos []vectorCoord | 8 | Pos []vectorCoord |
| 9 | DecalTextureIndex int16 | 9 | DecalTextureIndex int16 |
| 10 | EntityIndex int16 | 10 | EntityIndex uint16 |
| 11 | ModelIndex int16 | 11 | ModelIndex uint16 |
| 12 | LowPriority int8 | 12 | LowPriority bool |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | type vectorCoord struct { | 15 | type vectorCoord struct { |
| @@ -23,10 +23,10 @@ func ParseSvcBspDecal(reader *bitreader.Reader) SvcBspDecal { | |||
| 23 | DecalTextureIndex: int16(reader.TryReadBits(9)), | 23 | DecalTextureIndex: int16(reader.TryReadBits(9)), |
| 24 | } | 24 | } |
| 25 | if reader.TryReadBool() { | 25 | if reader.TryReadBool() { |
| 26 | svcBspDecal.EntityIndex = int16(reader.TryReadBits(11)) | 26 | svcBspDecal.EntityIndex = uint16(reader.TryReadBits(11)) |
| 27 | svcBspDecal.ModelIndex = int16(reader.TryReadBits(11)) | 27 | svcBspDecal.ModelIndex = uint16(reader.TryReadBits(11)) |
| 28 | } | 28 | } |
| 29 | svcBspDecal.LowPriority = int8(reader.TryReadBits(1)) | 29 | svcBspDecal.LowPriority = reader.TryReadBool() |
| 30 | return svcBspDecal | 30 | return svcBspDecal |
| 31 | } | 31 | } |
| 32 | 32 | ||