summaryrefslogtreecommitdiff
path: root/tptlibrary/file.c
blob: 67f2ca1c9bcc6c57870fad8d637ea74b86d5332a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "tpt_syscalls.h"

int update_TEST(int i, int x, int y, int nt, int ss)
{
	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;
}