From 11963346953029d9882e04ad7f86ea0fbf6aea49 Mon Sep 17 00:00:00 2001 From: SmileyAG Date: Sat, 30 Dec 2023 17:34:34 +0400 Subject: [PATCH] Inherit msurface_t for new structure due to added variable in the end with Half-Life 25th anniversary update --- HLSDK/common/com_model.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/HLSDK/common/com_model.h b/HLSDK/common/com_model.h index cab96cb1..1cbaa1c9 100644 --- a/HLSDK/common/com_model.h +++ b/HLSDK/common/com_model.h @@ -272,6 +272,19 @@ struct msurface_s }; #endif +typedef struct displaylist_s // Half-Life 25th anniversary update (hardware engine) +{ + unsigned gl_displaylist; + int rendermode; + float scrolloffset; + int renderDetailTexture; +} displaylist_t; + +struct msurface_hw_25th_anniversary_t : public msurface_t +{ + displaylist_t displaylist; // Half-Life 25th anniversary update (hardware engine) +}; + typedef struct { int planenum;