From 00735cac907375ce2055765a727fa70ec56cf675 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 31 Mar 2020 22:14:38 +0200 Subject: [PATCH] rogueviz::snow:: disable texture --- rogueviz/snow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rogueviz/snow.cpp b/rogueviz/snow.cpp index 1b964443..167e24ab 100644 --- a/rogueviz/snow.cpp +++ b/rogueviz/snow.cpp @@ -23,6 +23,9 @@ bool snow_test = false; /* a funny glitch */ bool snow_glitch = false; +/* disable textures */ +bool snow_texture = true; + int snow_shape = 0; map > matrices_at; @@ -110,8 +113,10 @@ bool draw_snow(cell *c, const transmatrix& V) { } poly_outline = 0xFF; - for(auto& T: matrices_at[c]) - queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF).tinf = nullptr; + for(auto& T: matrices_at[c]) { + auto& p = queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF); + if(!snow_texture) p.tinf = nullptr; + } return false; } @@ -137,6 +142,9 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow) else if(argis("-snow-test")) { snow_test = true; } + else if(argis("-snow-no-texture")) { + snow_texture = false; + } else if(argis("-snow-glitch")) { snow_test = true; }