Skip to content

Commit

Permalink
Inherit msurface_t for new structure due to added variable in the end…
Browse files Browse the repository at this point in the history
… with Half-Life 25th anniversary update
  • Loading branch information
SmileyAG committed Jan 2, 2024
1 parent 7c35c77 commit 7f75082
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion common/com_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,20 @@ struct msurface_s

color24 *samples; // note: this is the actual lightmap data for this surface
decal_t *pdecals;
};
#endif

//mdisplaylist_t displaylist; // Half-Life 25th Anniversary Update
#ifdef __cplusplus
struct msurface_hw_25th_anniversary_t : public msurface_t
{
mdisplaylist_t displaylist;
};
#else
typedef struct
{
msurface_t surface;
mdisplaylist_t displaylist;
} msurface_hw_25th_anniversary_t;
#endif

typedef struct
Expand Down

0 comments on commit 7f75082

Please sign in to comment.