Skip to content

Commit

Permalink
PIPE: don't try to render stickmen graphics if stickmen are inside th…
Browse files Browse the repository at this point in the history
…e pipe
  • Loading branch information
jacob1 committed Jul 26, 2016
1 parent fdb5390 commit 6eb8322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/simulation/elements/PIPE.cpp
Expand Up @@ -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 && t<PT_NUM && ren->sim->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;
Expand Down

0 comments on commit 6eb8322

Please sign in to comment.