From df504330e274a21e841d9457d4f1847438f2dde8 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Tue, 30 Aug 2011 07:23:25 +0800 Subject: Fixes: HUD for fast PIPE, PIPE contents disappearing when next to walls, scrolling special menu, and parts_lastActiveIndex diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 9e060b5..6b5a508 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -130,7 +130,7 @@ int update_PIPE(UPDATE_FUNC_ARGS) { if (x+rx>=0 && y+ry>=0 && x+rx>8].ctype; if ((cr&0xFF)==PT_PIPE) { - if (parts[cr>>8].tmp>8].tmp; - else tctype = 0; + tctype = parts[cr>>8].tmp&0xFF; } if (tctype>=PT_NUM || tctype<0 || (cr&0xFF)==PT_PHOT) tctype = 0; -- cgit v0.9.2-21-gd62e