From d566a152bb48be0a5f9d713162367143ea842050 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 3 Mar 2021 18:01:34 +0000 Subject: [PATCH] Skip GfxDetermineMainColours contents in dedicated compiles Fixes linker error --- src/gfxinit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 115716771a..e8fd758f8b 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -431,6 +431,7 @@ static SpriteID GetSpriteIDForClearGround(const ClearGround cg, const Slope slop /** Once the sprites are loaded, we can determine main colours of ground/water/... */ void GfxDetermineMainColours() { +#if !defined(DEDICATED) /* Water. */ extern uint32 _vp_map_water_colour[5]; _vp_map_water_colour[0] = GetSpriteMainColour(SPR_FLAT_WATER_TILE, PAL_NONE); @@ -490,6 +491,7 @@ void GfxDetermineMainColours() memcpy(&(_vp_map_vegetation_tree_colours[s]), &(_vp_map_vegetation_tree_colours[0]), sizeof(_vp_map_vegetation_tree_colours[0])); } } +#endif /* !DEDICATED */ } /** Initialise and load all the sprites. */