Mercurial > mm7
comparison Render.cpp @ 1489:a27cdb3d753e
Cleanup of LevelDecoration and related.
author | yoctozepto |
---|---|
date | Thu, 29 Aug 2013 22:22:33 +0200 |
parents | 934074e7fcc1 |
children | db0dfdb9871e |
comparison
equal
deleted
inserted
replaced
1488:f62e6d06acac | 1489:a27cdb3d753e |
---|---|
913 for (int i = 0; i < uNumLevelDecorations; ++i) | 913 for (int i = 0; i < uNumLevelDecorations; ++i) |
914 { | 914 { |
915 auto decor = &pLevelDecorations[i]; | 915 auto decor = &pLevelDecorations[i]; |
916 auto v0 = (char *)&pLevelDecorations[i].vPosition.y; | 916 auto v0 = (char *)&pLevelDecorations[i].vPosition.y; |
917 | 917 |
918 if ( (!(decor->field_2 & 0x40) || decor->_47A825()) && !(decor->field_2 & 0x20) ) | 918 if ((!(decor->uFlags & LEVEL_DECORATION_OBELISK_CHEST) || decor->_47A825()) && !(decor->uFlags & LEVEL_DECORATION_INVISIBLE)) |
919 { | 919 { |
920 //v1 = &pDecorationList->pDecorations[decor->uDecorationDescID]; | 920 //v1 = &pDecorationList->pDecorations[decor->uDecorationDescID]; |
921 auto decor_desc = pDecorationList->pDecorations + decor->uDecorationDescID; | 921 auto decor_desc = pDecorationList->pDecorations + decor->uDecorationDescID; |
922 v2 = decor_desc->uFlags; | 922 v2 = decor_desc->uFlags; |
923 if ( (char)v2 >= 0 ) | 923 if ( (char)v2 >= 0 ) |