| 807 | */ |
| 808 | |
| 809 | static void set_trans(Slope *t, Element * a, Element * b,int ext, int e) |
| 810 | { |
| 811 | int i; |
| 812 | |
| 813 | for (i = 0; i < ELM_COUNT; i++) |
| 814 | { |
| 815 | t[i].mTime = ((ext) ? a->mInterpolator[i].mExtDelay : a->mInterpolator[i].mIntDelay); |
| 816 | |
| 817 | if (t[i].mTime) |
| 818 | { |
| 819 | t[i].mValue = a->mInterpolator[i].mFixed + (a->mInterpolator[i].mProportion * b->mInterpolator[i].mSteady) * 0.01f; // mProportion is in scale 0..100, so *0.01. |
| 820 | } |
| 821 | else |
| 822 | { |
| 823 | t[i].mValue = b->mInterpolator[i].mSteady; |
| 824 | } |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | static float lerp(float a, float b, int t, int d) |
| 829 | { |