From 98cf022a4497d4d6b0aa333eead8fb8011cd531b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Mar 2022 08:46:48 +0100 Subject: [PATCH] rv:: snow:: fixes --- rogueviz/snow.cpp | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/rogueviz/snow.cpp b/rogueviz/snow.cpp index 35d6dc65..5471c028 100644 --- a/rogueviz/snow.cpp +++ b/rogueviz/snow.cpp @@ -40,11 +40,15 @@ bool snow_glitch = false; /* disable textures */ bool snow_texture = true; +/* draw single objects? */ +bool single_objects = true; + int snow_shape = 0; struct snowball { transmatrix T; int model_id; + int object_id; }; map> snowballs_at; @@ -134,14 +138,29 @@ bool draw_snow(cell *c, const shiftmatrix& V) { } } - for(int t=0; tcolor) queuepoly(V*T.T, obj->sh, obj->color); + } + } } else { auto& p = queuepoly(V * T.T, shapeid(snow_shape), snow_color);