From: Rudolf Polzer Date: Wed, 23 Feb 2011 13:33:18 +0000 (+0100) Subject: allow game packs to override the default of brush primitives X-Git-Tag: xonotic-v0.5.0~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3cdbbcc748e82544814176b281d6f0544f729177;p=xonotic%2Fnetradiant.git allow game packs to override the default of brush primitives --- diff --git a/radiant/brushmodule.cpp b/radiant/brushmodule.cpp index 21cec0ee..3cdf77a8 100644 --- a/radiant/brushmodule.cpp +++ b/radiant/brushmodule.cpp @@ -118,6 +118,10 @@ void Brush_Construct(EBrushType type) { g_showAlternativeTextureProjectionOption = true; + const char *value = g_pGameDescription->getKeyValue("brush_primit"); + if(!string_empty(value)) + g_useAlternativeTextureProjection.m_latched = atoi(value); + GlobalPreferenceSystem().registerPreference( "AlternativeTextureProjection", BoolImportStringCaller(g_useAlternativeTextureProjection.m_latched),