diff options
| author | Simon <simon@hardwired.org.uk> | 2011-03-30 17:57:49 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-03-30 17:57:49 (GMT) |
| commit | b7a004986f70986aa9cd314d754deddff6b031f0 (patch) | |
| tree | 8f9329a74cfd1d2718de4e4a8bef62d7313d96ea /src/elements/pipe.c | |
| parent | 3863a7587734be5a010327d869838daf5790d84a (diff) | |
| download | powder-b7a004986f70986aa9cd314d754deddff6b031f0.zip powder-b7a004986f70986aa9cd314d754deddff6b031f0.tar.gz | |
A cracker commit with some nice comments
Diffstat (limited to 'src/elements/pipe.c')
| -rw-r--r-- | src/elements/pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 7d709aa..849d2ea 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -4,7 +4,7 @@ int update_PIPE(UPDATE_FUNC_ARGS) { int r, rx, ry, np, trade, q, ctype; if (!parts[i].ctype && parts[i].life<=10) { - if (parts[i].temp<272.15) + if (parts[i].temp<272.15)//manual pipe colors { if (parts[i].temp>173.25&&parts[i].temp<273.15) { @@ -32,13 +32,13 @@ int update_PIPE(UPDATE_FUNC_ARGS) { if ((r>>8)>=NPART ) continue; if (!r) - create_part(-1,x+rx,y+ry,PT_BRCK); + create_part(-1,x+rx,y+ry,PT_BRCK);//BRCK border, people didn't like DMND } if (parts[i].life==1) parts[i].ctype = 1; } } - if (parts[i].ctype==1) + if (parts[i].ctype==1)//waiting for empty space { for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) |
