mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-09 18:06:33 +02:00
PIPE: don't try to render stickmen graphics if stickmen are inside the pipe
This commit is contained in:
@@ -278,9 +278,11 @@ int Element_PIPE::update(UPDATE_FUNC_ARGS)
|
|||||||
//#TPT-Directive ElementHeader Element_PIPE static int graphics(GRAPHICS_FUNC_ARGS)
|
//#TPT-Directive ElementHeader Element_PIPE static int graphics(GRAPHICS_FUNC_ARGS)
|
||||||
int Element_PIPE::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>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)
|
if (ren->graphicscache[t].isready)
|
||||||
{
|
{
|
||||||
*pixel_mode = ren->graphicscache[t].pixel_mode;
|
*pixel_mode = ren->graphicscache[t].pixel_mode;
|
||||||
|
Reference in New Issue
Block a user