summaryrefslogtreecommitdiff
path: root/tptlibrary/file.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-16 11:02:09 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-16 11:02:09 (GMT)
commit95bbd04d212a35d19af4f13375914971aeed758e (patch)
tree533be8ff914afb13f0a97303f9c76bc0ed3277e5 /tptlibrary/file.c
parent42ec654f3e38e8c037a948665d96789334f5b3d1 (diff)
parentec0dfa27e888461ec85012fa23d5a26e30f0e813 (diff)
downloadpowder-95bbd04d212a35d19af4f13375914971aeed758e.zip
powder-95bbd04d212a35d19af4f13375914971aeed758e.tar.gz
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'tptlibrary/file.c')
-rw-r--r--tptlibrary/file.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tptlibrary/file.c b/tptlibrary/file.c
index b3ad278..67f2ca1 100644
--- a/tptlibrary/file.c
+++ b/tptlibrary/file.c
@@ -2,6 +2,14 @@
int update_TEST(int i, int x, int y, int nt, int ss)
{
- partCreate(-1, x, y-1, 2);
+ int k, j, index;
+
+ for(k=-1; k<2; k++)
+ for(j=-1; j<2; j++)
+ {
+ index = pmapData(x+k, y+j);
+ if ((index&0xFF) == 2)
+ killPart(index>>8);
+ }
return 0;
}