From 6eb832207c20d3affb58c606cae64fca5133efa8 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 25 Jul 2016 23:59:16 -0400 Subject: [PATCH] PIPE: don't try to render stickmen graphics if stickmen are inside the pipe --- src/simulation/elements/PIPE.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/PIPE.cpp b/src/simulation/elements/PIPE.cpp index 54198e29f7..4beeff1790 100644 --- a/src/simulation/elements/PIPE.cpp +++ b/src/simulation/elements/PIPE.cpp @@ -278,9 +278,11 @@ int Element_PIPE::update(UPDATE_FUNC_ARGS) //#TPT-Directive ElementHeader Element_PIPE static int graphics(GRAPHICS_FUNC_ARGS) int Element_PIPE::graphics(GRAPHICS_FUNC_ARGS) { - int t = cpart->tmp & 0xFF;; + int t = cpart->tmp & 0xFF; if (t>0 && tsim->elements[t].Enabled) { + if (t == PT_STKM || t == PT_STKM2 || t == PT_FIGH) + return 0; if (ren->graphicscache[t].isready) { *pixel_mode = ren->graphicscache[t].pixel_mode;