From 9d60415e2c2fa5c56edc3e23079c9b885a82ae00 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 5 Oct 2025 18:19:47 +0100 Subject: Add SDK 2013 HUD support Gamedata values contributed by Evan Lin. Thanks! --- src/hud.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hud.c') diff --git a/src/hud.c b/src/hud.c index cb360ca..eed64ff 100644 --- a/src/hud.c +++ b/src/hud.c @@ -169,9 +169,9 @@ static bool find_toolspanel(struct CEngineVGui *enginevgui) { } INIT { - matsurf = factory_engine("MatSystemSurface006", 0); - if_cold (!matsurf) { - errmsg_errorx("couldn't get MatSystemSurface006 interface"); + if (!(matsurf = factory_engine("MatSystemSurface006", 0)) && + !(matsurf = factory_engine("MatSystemSurface008", 0))) { + errmsg_errorx("couldn't get MatSystemSurface interface"); return FEAT_INCOMPAT; } struct ISchemeManager *schememgr = factory_engine("VGUI_Scheme010", 0); -- cgit v1.2.3-54-g00ecf