diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-14 12:38:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-14 12:38:52 (GMT) |
| commit | fa54c005b298befb065a8aa4134836b0460b75b7 (patch) | |
| tree | 56c4f3e002ad1be635f1cddbf121c983469102b0 /src/elements/pump.c | |
| parent | 73f2f9f57fd6efa4ed386a86f5a8d118d879a629 (diff) | |
| download | powder-fa54c005b298befb065a8aa4134836b0460b75b7.zip powder-fa54c005b298befb065a8aa4134836b0460b75b7.tar.gz | |
Use properties for life decrement/kill
Diffstat (limited to 'src/elements/pump.c')
| -rw-r--r-- | src/elements/pump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elements/pump.c b/src/elements/pump.c index 244ca8f..fa28b4c 100644 --- a/src/elements/pump.c +++ b/src/elements/pump.c @@ -2,6 +2,8 @@ int update_PUMP(UPDATE_FUNC_ARGS) { int r, rx, ry; + if (parts[i].life>0 && parts[i].life!=10) + parts[i].life--; if (parts[i].life==10) { if (parts[i].temp>=256.0+273.15) |
