mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 12:46:56 +00:00
cleanup
svn-id: r17539
This commit is contained in:
parent
b4f0716912
commit
7927802873
@ -135,24 +135,17 @@ int16 scen_loadStatic(char search) {
|
||||
ptr->pieces[i] =
|
||||
(Scen_PieceDesc *) game_loadExtData(pictDescId, 0,
|
||||
0);
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
|
||||
} else {
|
||||
ptr->pieces[i] =
|
||||
(Scen_PieceDesc *)
|
||||
game_loadTotResource(pictDescId);
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
|
||||
}
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
|
||||
width = inter_load16();
|
||||
height = inter_load16();
|
||||
sprResId = inter_load16();
|
||||
@ -454,23 +447,18 @@ int16 scen_loadAnim(char search) {
|
||||
ptr->pieces[i] =
|
||||
(Scen_PieceDesc *) game_loadExtData(pictDescId, 0,
|
||||
0);
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
|
||||
} else {
|
||||
ptr->pieces[i] =
|
||||
(Scen_PieceDesc *)
|
||||
game_loadTotResource(pictDescId);
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
}
|
||||
|
||||
|
||||
ptr->pieces[i]->left = (int16)READ_LE_UINT16(&ptr->pieces[i]->left);
|
||||
ptr->pieces[i]->right = (int16)READ_LE_UINT16(&ptr->pieces[i]->right);
|
||||
ptr->pieces[i]->top = (int16)READ_LE_UINT16(&ptr->pieces[i]->top);
|
||||
ptr->pieces[i]->bottom = (int16)READ_LE_UINT16(&ptr->pieces[i]->bottom);
|
||||
|
||||
width = inter_load16();
|
||||
height = inter_load16();
|
||||
sprResId = inter_load16();
|
||||
|
Loading…
Reference in New Issue
Block a user