aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcBspDecal.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/messages/types/svcBspDecal.go')
-rw-r--r--pkg/messages/types/svcBspDecal.go12
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 (
7type SvcBspDecal struct { 7type 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
15type vectorCoord struct { 15type 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