diff 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
line wrap: on
line diff
--- a/spe/Bom.cc	Mon Feb 07 03:31:18 2011 +0900
+++ b/spe/Bom.cc	Sun Feb 06 17:16:43 2011 +0900
@@ -1,19 +1,12 @@
-#include "tobject.h"
+#include "task_object.h"
+#include "../ObjectType.h"
 
 void
-Bom(int x, int y, int bomend, bomchar *bchar)
+Bom(int x, int y, ObjDataPtr obj)
 {
-    int i;
-    bomend++;
-    if (bomend > 49) {
-	bomend = 49;
-	return;
-    }
+    obj->type = Boms;
+    obj->x = x;
+    obj->y = y;
 
-    i = bomend;
-    bchar[i].x = x;
-    bchar[i].y = y;
-    bchar[i].no = 0;
-    bchar[i].f = 0;
     return;
 }