aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2025-03-26 13:36:09 +0100
committerHimbeer <himbeer@disroot.org>2025-03-26 13:36:09 +0100
commit7800bf490fa92879dfc46a54836624a8d1c6c6f6 (patch)
treea47e4665826f45782bfa786d48fa12f45ae4a4fc
parentba1b754dbfa12ef1a78cb508a22babeab09ae454 (diff)
Fix HUD fields not being treated as textures when prepending
-rw-r--r--content.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/content.go b/content.go
index 1ed3193..4c616e0 100644
--- a/content.go
+++ b/content.go
@@ -687,28 +687,28 @@ func (sc *ServerConn) prependHUD(t mt.HUDType, cmdIface mt.ToCltCmd) {
pa := func(cmd *mt.ToCltAddHUD) {
switch t {
case mt.StatbarHUD:
- prepend(sc.mediaPool, &cmd.Text2)
+ prependRaw(sc.mediaPool, &cmd.Text2, true)
fallthrough
case mt.ImgHUD:
fallthrough
case mt.ImgWaypointHUD:
fallthrough
case mt.ImgWaypointHUD + 1:
- prepend(sc.mediaPool, &cmd.Text)
+ prependRaw(sc.mediaPool, &cmd.Text, true)
}
}
pc := func(cmd *mt.ToCltChangeHUD) {
switch t {
case mt.StatbarHUD:
- prepend(sc.mediaPool, &cmd.Text2)
+ prependRaw(sc.mediaPool, &cmd.Text2, true)
fallthrough
case mt.ImgHUD:
fallthrough
case mt.ImgWaypointHUD:
fallthrough
case mt.ImgWaypointHUD + 1:
- prepend(sc.mediaPool, &cmd.Text)
+ prependRaw(sc.mediaPool, &cmd.Text, true)
}
}