Correctly propagate TCMask settings through PIE levels, so it will works for animated objects too.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10530 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
2628d7dac7
commit
d3f1d77aed
|
@ -765,7 +765,8 @@ iIMDShape *iV_ProcessIMD( const char **ppFileData, const char *FileDataEnd )
|
|||
debug(LOG_ERROR, "iV_ProcessIMD %s could not load tex page %s", pFileName, texfile);
|
||||
return NULL;
|
||||
}
|
||||
/* assign tex page to levels */
|
||||
|
||||
// assign tex page to levels
|
||||
for (psShape = shape; psShape != NULL; psShape = psShape->next)
|
||||
{
|
||||
psShape->texpage = texpage;
|
||||
|
@ -784,9 +785,10 @@ iIMDShape *iV_ProcessIMD( const char **ppFileData, const char *FileDataEnd )
|
|||
}
|
||||
else
|
||||
{
|
||||
shape->flags |= iV_IMD_TCMASK;
|
||||
// Propagate settings through levels
|
||||
for (psShape = shape; psShape != NULL; psShape = psShape->next)
|
||||
{
|
||||
psShape->flags |= iV_IMD_TCMASK;
|
||||
psShape->tcmaskpage = texpage;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue