* Get the offset in the file which stores the animation data for a given * frame. * @param fileno The fileno of an opened WSA. * @param frame The frame of animation. * @return The offset for the animation from the beginning of the file. */
| 103 | * @return The offset for the animation from the beginning of the file. |
| 104 | */ |
| 105 | static uint32 WSA_GetFrameOffset_FromDisk(uint8 fileno, uint16 frame) |
| 106 | { |
| 107 | uint32 offset; |
| 108 | |
| 109 | File_Seek(fileno, frame * 4 + 10, 0); |
| 110 | offset = File_Read_LE32(fileno); |
| 111 | |
| 112 | return offset; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Go to the next frame in the animation. |
no test coverage detected