View Single Post
  #3  
Old 11-15-2006, 06:11 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Rick View Post
Fixed.
NPC Code:
0000 is 0
0001 is 1
0010 is 2
0011 is 2 | 1
0100 is 4
0101 is 4 | 1
0111 is 4 | 2 | 1

They evaluate to the same result, though bitwise or is probably faster. The purpose of that section was just to demonstrate how integers are represented in bits.
Reply With Quote