diff options
| author | Savely Skresanov <savask@yandex.ru> | 2012-09-15 14:31:55 (GMT) |
|---|---|---|
| committer | Savely Skresanov <savask@yandex.ru> | 2012-09-15 14:34:27 (GMT) |
| commit | ec0dfa27e888461ec85012fa23d5a26e30f0e813 (patch) | |
| tree | 127dd057a10a8810ea14057d8da2e050655f3e1c /tptlibrary/file.c | |
| parent | b626864293a5cb4717303245095c6d6f39c52f7d (diff) | |
| download | powder-ec0dfa27e888461ec85012fa23d5a26e30f0e813.zip powder-ec0dfa27e888461ec85012fa23d5a26e30f0e813.tar.gz | |
Hooked more functions to VM.
Diffstat (limited to 'tptlibrary/file.c')
| -rw-r--r-- | tptlibrary/file.c | 10 |
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; } |
