diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-26 13:36:09 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-26 13:36:09 +0100 |
commit | 7800bf490fa92879dfc46a54836624a8d1c6c6f6 (patch) | |
tree | a47e4665826f45782bfa786d48fa12f45ae4a4fc | |
parent | ba1b754dbfa12ef1a78cb508a22babeab09ae454 (diff) |
Fix HUD fields not being treated as textures when prepending
-rw-r--r-- | content.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) } } |