aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcBspDecal.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-17 18:24:18 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-20 11:10:20 +0300
commit6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75 (patch)
treee925740a5c04b1c5c44e725dab04f9b1833cf9e3 /pkg/messages/types/svcBspDecal.go
parentparse netSignOnState flags (diff)
downloadsdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.tar.gz
sdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.tar.bz2
sdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.zip
decide what message types are left
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