GrimSqueaker / remc2

Recode Binary code of game Magic Carpet2 to C/C++ language(remake MC2 for any platform)
6 stars 0 forks source link

sub_98709_create_index_dattab_power 64x fixes #49

Closed turican0 closed 3 years ago

turican0 commented 3 years ago

I change code to this, please test it, in my solution game runs without errors, Tom.

void sub_98709_create_index_dattab_power(posistruct2_t tabbuffer, posistruct2_t tabbufferend, uint8_t datbuffer, posistruct_t dattabindex)//279709 { //int length = (tabbufferend - ((uint8_t)tabbuffer)) / 6; int length = tabbufferend - tabbuffer; for (int i = 0; i < length; i++) { //int index = tabbuffer[i].data; dattabindex[i].data = (datbuffer + tabbuffer[i].data); dattabindex[i].width = tabbuffer[i].width 2; dattabindex[i].height = tabbuffer[i].height * 2; } }