| 792 | } |
| 793 | } |
| 794 | void DoDynamicFallLeft(int handle, dynamic_proc_element *proc) { |
| 795 | PlaceProcPoint(FixToInt(proc->x1), FixToInt(proc->y1), proc->color); |
| 796 | proc->frames_left--; |
| 797 | if (proc->frames_left < 1) |
| 798 | ProcElementUnlink(proc - DynamicProcElements, handle); |
| 799 | else { |
| 800 | proc->color--; |
| 801 | if (proc->color == 0) |
| 802 | ProcElementUnlink(proc - DynamicProcElements, handle); |
| 803 | else { |
| 804 | if (FixToInt(proc->dx) < 0) |
| 805 | proc->dx += FloatToFix(((ps_rand() % 100) / 2000.0)); |
| 806 | if (FixToInt(proc->dy) < 2) |
| 807 | proc->dy += FloatToFix(((ps_rand() % 100) / 1000.0)); |
| 808 | proc->x1 += proc->dx; |
| 809 | proc->y1 += proc->dy; |
| 810 | } |
| 811 | } |
| 812 | } |
| 813 | void CalcWater2(int handle, int density) { |
| 814 | int newh; |
| 815 | int count = PROC_SIZE + 1; |
no test coverage detected