try using the new function pointer.

develop
Japa 2018-01-25 11:55:46 +05:30
parent 68324dfe0b
commit f1b8fa305b
2 changed files with 16 additions and 7 deletions

@ -1 +1 @@
Subproject commit f0c609211fbfd354b576cae75e9e64f8c6c80b06
Subproject commit 618db6349ece5827d371a60b0fac1066b1d7989b

@ -103,6 +103,14 @@ void CopyImage(const df::art_image * image, ArtImage * netImage)
}
void CopyImage(df::art_image_ref imageRef, ArtImage * netImage)
{
if (df::global::getArtImage)
{
df::art_image * (*getImage)(df::art_image_ref *, int *) = (df::art_image * (*)(df::art_image_ref *, int *))df::global::getArtImage;
int subid = -1;
CopyImage(getImage(&imageRef, &subid), netImage);
}
else
{
for (int i = 0; i < world->art_image_chunks.size(); i++)
{
@ -113,6 +121,7 @@ void CopyImage(df::art_image_ref imageRef, ArtImage * netImage)
CopyImage(image, netImage);
}
}
}
void CopyItem(RemoteFortressReader::Item * NetItem, df::item * DfItem)
{