| 884 | } |
| 885 | |
| 886 | void xCameraUpdate(xCamera* cam, F32 dt) |
| 887 | { |
| 888 | S32 i; |
| 889 | S32 num_updates; |
| 890 | F32 sdt; |
| 891 | |
| 892 | num_updates = std::ceilf(144.0f * dt); |
| 893 | |
| 894 | sdt = dt / num_updates; |
| 895 | |
| 896 | for (i = 0; i < num_updates; i++) |
| 897 | { |
| 898 | sCamCollis = (i == num_updates - 1); |
| 899 | |
| 900 | _xCameraUpdate(cam, sdt); |
| 901 | } |
| 902 | } |
| 903 | |
| 904 | #ifndef INLINE |
| 905 | float std::ceilf(float x) |
no test coverage detected