Mercurial > mm7
comparison Indoor.cpp @ 1063:bcebd491e8fa
some cleaning
author | zipi |
---|---|
date | Fri, 24 May 2013 00:58:19 +0100 |
parents | b79139c3b5c8 |
children | d6bea22f8b53 |
comparison
equal
deleted
inserted
replaced
1062:e23a79658fc5 | 1063:bcebd491e8fa |
---|---|
1732 | 1732 |
1733 | 1733 |
1734 //----- (004488F7) -------------------------------------------------------- | 1734 //----- (004488F7) -------------------------------------------------------- |
1735 void IndoorLocation::ToggleLight(signed int sLightID, unsigned int bToggle) | 1735 void IndoorLocation::ToggleLight(signed int sLightID, unsigned int bToggle) |
1736 { | 1736 { |
1737 char *v2; // eax@4 | |
1738 | |
1739 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor && (sLightID <= pIndoor->uNumLights - 1) && (sLightID >= 0) ) | 1737 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor && (sLightID <= pIndoor->uNumLights - 1) && (sLightID >= 0) ) |
1740 { | 1738 { |
1741 v2 = (char *)&pIndoor->pLights[sLightID].uAtributes; | |
1742 if ( bToggle ) | 1739 if ( bToggle ) |
1743 *v2 &= 0xF7u; | 1740 pIndoor->pLights[sLightID].uAtributes &= 0xFFFFFFF7u; |
1744 else | 1741 else |
1745 *v2 |= 8u; | 1742 pIndoor->pLights[sLightID].uAtributes |= 8u; |
1746 pParty->uFlags |= 2u; | 1743 pParty->uFlags |= 2u; |
1747 } | 1744 } |
1748 } | 1745 } |
1749 | 1746 |
1750 | 1747 |