Mercurial > mm7
diff Indoor.cpp @ 1063:bcebd491e8fa
some cleaning
author | zipi |
---|---|
date | Fri, 24 May 2013 00:58:19 +0100 |
parents | b79139c3b5c8 |
children | d6bea22f8b53 |
line wrap: on
line diff
--- a/Indoor.cpp Fri May 24 00:44:51 2013 +0100 +++ b/Indoor.cpp Fri May 24 00:58:19 2013 +0100 @@ -1734,15 +1734,12 @@ //----- (004488F7) -------------------------------------------------------- void IndoorLocation::ToggleLight(signed int sLightID, unsigned int bToggle) { - char *v2; // eax@4 - if ( uCurrentlyLoadedLevelType == LEVEL_Indoor && (sLightID <= pIndoor->uNumLights - 1) && (sLightID >= 0) ) { - v2 = (char *)&pIndoor->pLights[sLightID].uAtributes; if ( bToggle ) - *v2 &= 0xF7u; + pIndoor->pLights[sLightID].uAtributes &= 0xFFFFFFF7u; else - *v2 |= 8u; + pIndoor->pLights[sLightID].uAtributes |= 8u; pParty->uFlags |= 2u; } }