Merge pull request #805 from nullworks/BenCat07-patch-1

Fix the visuals stuff being used wron
This commit is contained in:
TotallyNotElite 2019-08-31 14:48:04 +02:00 committed by GitHub
commit ef5f2e4c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ settings::Int print_r{ "print.rgb.r", "183" };
settings::Int print_g{ "print.rgb.b", "27" };
settings::Int print_b{ "print.rgb.g", "139" };
Color menu_color{ *print_r, *print_g, *print_b, 255 };
#if ENABLE_VISUALS
#if !TEXTMODE
settings::Boolean null_graphics("hack.nullgraphics", "false");
#else
settings::Boolean null_graphics("hack.nullgraphics", "true");

View File

@ -363,7 +363,7 @@ static void UnHookFs()
if (g_IBaseClient)
g_IBaseClient->InvalidateMdlCache();
}
#if !ENABLE_VISUALS
#if TEXTMODE
static InitRoutineEarly nullify_textmode([]() {
ReduceRamUsage();
static auto addr1 = e8call_direct(gSignatures.GetEngineSignature("E8 ? ? ? ? 8B 93 ? ? ? ? 85 D2 0F 84 ? ? ? ?")) + 0x18;