diff Indoor.cpp @ 1066:938af16d5b88

Merge
author Gloval
date Fri, 24 May 2013 08:17:50 +0400
parents bcebd491e8fa
children d6bea22f8b53
line wrap: on
line diff
--- a/Indoor.cpp	Fri May 24 08:17:05 2013 +0400
+++ b/Indoor.cpp	Fri May 24 08:17:50 2013 +0400
@@ -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;
   }
 }