Mercurial > hg > Members > koba > t_dandy
diff spe/chara_state28.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_state28.cc Mon Feb 07 03:31:18 2011 +0900 +++ b/spe/chara_state28.cc Sun Feb 06 17:16:43 2011 +0900 @@ -7,18 +7,18 @@ static int state28(SchedTask *smanager, void *rbuf, void *wbuf) { - int rand = (int)smanager->get_param(2); + int rand = (int)smanager->get_param(0); int length = 2; CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); int count = *(int*)smanager->get_input(rbuf, 1); - smanager->set_outputSize(4, sizeof(ObjContainer)+sizeof(ObjData)*(length-1)); + smanager->set_outputSize(2, sizeof(ObjContainer)+sizeof(ObjData)*(length-1)); smanager->setup_outputData(); CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); int *w_count = (int*)smanager->get_output(wbuf, 1); - ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 4); + ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 2); sprite->flag = true; if (p->dt1 <= 360)