This discussion is archived
5 Replies Latest reply: Nov 2, 2008 4:46 AM by JoachimSauer RSS

Will plain number values have the same effect as hexadecimal values?

807589 Newbie
Currently Being Moderated
Would this:
                         if (getUpdates()[1]) /**<If an appearance update is needed...>**/
                              mask |= 128;
                         if (getUpdates()[2]) /**<If an animation update is needed...>**/
                              mask |= 1;
                         if (getUpdates()[3]) /**<If a graphics update is needed...>**/
                              mask |= 2048;
                         if (getUpdates()[4]) /**<If a face-to update is needed...>**/
                              mask |= 32;
                         if (getUpdates()[5]) /**<If a forced-chat update is needed...>**/
                              mask |= 4;
                         if (getUpdates()[6]) /**<If a regular chat update is needed...>**/
                              mask |= 8;
                         if (getUpdates()[7]) /**<If a hit (damage) update is needed...>**/
                              mask |= 2;
Have the same effect as:
                         if (getUpdates()[1]) /**<If an appearance update is needed...>**/
                              mask |= 0x80;
                         if (getUpdates()[2]) /**<If an animation update is needed...>**/
                              mask |= 0x1;
                         if (getUpdates()[3]) /**<If a graphics update is needed...>**/
                              mask |= 0x800;
                         if (getUpdates()[4]) /**<If a face-to update is needed...>**/
                              mask |= 0x20;
                         if (getUpdates()[5]) /**<If a forced-chat update is needed...>**/
                              mask |= 0x4;
                         if (getUpdates()[6]) /**<If a regular chat update is needed...>**/
                              mask |= 0x8;
                         if (getUpdates()[7]) /**<If a hit (damage) update is needed...>**/
                              mask |= 0x2;