summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-04-21 13:15:15 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-04-21 13:15:15 (GMT)
commit31d76df948c7b83df7278562ff05cb6366061415 (patch)
tree67273299f01f9da6109ab8a0b73c00ea7159cf78 /src/elements
parent635be04c16ed6c3f5cb09146461ff005db82e5ac (diff)
downloadpowder-31d76df948c7b83df7278562ff05cb6366061415.zip
powder-31d76df948c7b83df7278562ff05cb6366061415.tar.gz
Fix returns for Coal code
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/bcol.c1
-rw-r--r--src/elements/coal.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/elements/bcol.c b/src/elements/bcol.c
index 2bf89be..de394bc 100644
--- a/src/elements/bcol.c
+++ b/src/elements/bcol.c
@@ -28,6 +28,7 @@ int update_BCOL(UPDATE_FUNC_ARGS) {
if (parts[r>>8].ctype == PT_IRON) {
parts[r>>8].ctype = PT_METL;
kill_part(i);
+ return 1;
}
}
}
diff --git a/src/elements/coal.c b/src/elements/coal.c
index c73f49c..424a1a1 100644
--- a/src/elements/coal.c
+++ b/src/elements/coal.c
@@ -35,6 +35,7 @@ int update_COAL(UPDATE_FUNC_ARGS) {
if (parts[r>>8].ctype == PT_IRON) {
parts[r>>8].ctype = PT_METL;
kill_part(i);
+ return 1;
}
}
}