diff spe/chara_state12.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 f4140672ef9f
children
line wrap: on
line diff
--- a/spe/chara_state12.cc	Mon Feb 07 03:31:18 2011 +0900
+++ b/spe/chara_state12.cc	Sun Feb 06 17:16:43 2011 +0900
@@ -22,14 +22,14 @@
 	smanager->setup_outputData();
 	
 	CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0);
-	int *w_count = (int*)smanager->get_output(wbuf, 3);
+	int *w_count = (int*)smanager->get_output(wbuf, 1);
 	int *w_rinky = (int*)smanager->get_output(wbuf, 4);
 	ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 6);
 	sprite->flag = true;
 	sprite->length = length;
 	
 	if (p->y > 240+32) {
-	    p->task = DELETE_CHARA;
+	    p->state_task = DELETE_CHARA;
 	}
 	p->y += 3;
 	rinky += 3;
@@ -38,7 +38,7 @@
 	DefSpriteEx(54, 16, 32, &sprite->data[index_count]);
 	index_count++;
 	PutSpriteEx(54, p->x, p->y, 2, 2, 1, &sprite->data[index_count]);
-	p->task = STATE12;
+	p->state_task = STATE12;
 	
 	*w_rinky = rinky;
 	*w_count = count;