diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-08-29 23:23:25 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-30 11:34:28 (GMT) |
| commit | df504330e274a21e841d9457d4f1847438f2dde8 (patch) | |
| tree | f55f29194ddb9923da5ed0d73dfa09d79a9cfee1 /src/elements | |
| parent | 323f3c1415a4322b212bdee063f6bf910a6f2d12 (diff) | |
| download | powder-df504330e274a21e841d9457d4f1847438f2dde8.zip powder-df504330e274a21e841d9457d4f1847438f2dde8.tar.gz | |
Fixes: HUD for fast PIPE, PIPE contents disappearing when next to walls, scrolling special menu, and parts_lastActiveIndex
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
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<XRES && y+ry<YRES) { r = pmap[y+ry][x+rx]; - if (surround_space && !r && (parts[i].tmp&0xFF)!=0) //creating at end + if (surround_space && !r && (parts[i].tmp&0xFF)!=0 && eval_move(parts[i].tmp&0xFF, x+rx, y+ry, NULL)) //creating at end { np = create_part(-1,x+rx,y+ry,parts[i].tmp&0xFF); if (np!=-1) @@ -139,8 +139,8 @@ int update_PIPE(UPDATE_FUNC_ARGS) { parts[np].life = parts[i].flags; parts[np].tmp = parts[i].pavg[0]; parts[np].ctype = parts[i].pavg[1]; + parts[i].tmp &= ~0xFF; } - parts[i].tmp &= ~0xFF; } //try eating particle at entrance else if ((parts[i].tmp&0xFF) == 0 && (ptypes[r&0xFF].falldown!= 0 || ptypes[r&0xFF].state == ST_GAS)) |
