comparison spe/Bom.cc @ 60:cfd42ee2ad28

change makefile, spe/task. adjust scale api. worked on ps3-ppe.
author yutaka@localhost.localdomain
date Sun, 06 Feb 2011 17:16:43 +0900
parents 927401604461
children
comparison
equal deleted inserted replaced
59:cd05eee90279 60:cfd42ee2ad28
1 #include "tobject.h" 1 #include "task_object.h"
2 #include "../ObjectType.h"
2 3
3 void 4 void
4 Bom(int x, int y, int bomend, bomchar *bchar) 5 Bom(int x, int y, ObjDataPtr obj)
5 { 6 {
6 int i; 7 obj->type = Boms;
7 bomend++; 8 obj->x = x;
8 if (bomend > 49) { 9 obj->y = y;
9 bomend = 49;
10 return;
11 }
12 10
13 i = bomend;
14 bchar[i].x = x;
15 bchar[i].y = y;
16 bchar[i].no = 0;
17 bchar[i].f = 0;
18 return; 11 return;
19 } 12 }