Mercurial > hg > Members > koba > t_dandy
comparison state_task.cc @ 56:a80422eb44a9
bug fix.TODO:print delete message on videoNONE mode.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 29 Jan 2011 02:46:41 +0900 |
parents | 3acdeb3dc3e8 |
children | 978097c6427a |
comparison
equal
deleted
inserted
replaced
55:2c33aa6a4a37 | 56:a80422eb44a9 |
---|---|
42 int fastebos = 0; | 42 int fastebos = 0; |
43 int asteroidi = 0; | 43 int asteroidi = 0; |
44 | 44 |
45 static int cpu_counter = SPE_1; | 45 static int cpu_counter = SPE_1; |
46 | 46 |
47 /* output 0~3 */ | 47 |
48 static CPU_TYPE | 48 static CPU_TYPE |
49 get_cpunum() | 49 get_cpunum() |
50 { | 50 { |
51 /* | |
51 cpu_counter += 1; | 52 cpu_counter += 1; |
52 if ((cpu_counter % SPE_5) == 0) { | 53 if ((cpu_counter % SPE_5) == 0) { |
53 cpu_counter = SPE_1; | 54 cpu_counter = SPE_1; |
54 } | 55 } |
55 | 56 |
56 return (CPU_TYPE)cpu_counter; | 57 return (CPU_TYPE)cpu_counter; |
58 */ | |
59 return SPE_1; | |
57 } | 60 } |
58 | 61 |
59 static int | 62 static int |
60 power_of_two(int input) | 63 power_of_two(int input) |
61 { | 64 { |
603 { | 606 { |
604 if (p->tama == FALSE) { | 607 if (p->tama == FALSE) { |
605 printf("F%d: DELETE [NAME]%s_%d [COORD]x= %f y= %f vx= %f vy= %f\n", | 608 printf("F%d: DELETE [NAME]%s_%d [COORD]x= %f y= %f vx= %f vy= %f\n", |
606 filpcount, dtable[p->charano].name, p->chara_id, | 609 filpcount, dtable[p->charano].name, p->chara_id, |
607 p->x, p->y, p->vx, p->vy); | 610 p->x, p->y, p->vx, p->vy); |
608 printf(" [TAMA]lv1 = %d, lv2 = %d [LASER]lv1 = %d\n", | 611 printf(" [TAMA]lv1 = %d, lv2 = %d [LASER]lv1 = %d\n", |
609 tama_lv1_end, tama_lv2_end, laser_lv1_end); | 612 tama_lv1_end, tama_lv2_end, laser_lv1_end); |
610 } | 613 } |
611 | 614 |
612 CHARACTER *parent = p; | 615 CHARACTER *parent = p; |
613 p->f = FALSE; | 616 p->f = FALSE; |