even more endianness fixes by myself (Ronald Lasmanowicz)

I figured this out while porting Chocolate to the Nintendo Wii and also had to change these lines of code.