• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Reply to thread

You have to update the bitmask for each new ability you add, if you add a new one in enums.h you'll use 1 << 47, then you'll have to add that to the bitmask and re-update. The bitmask is the result of all bit shifts, meaning that what I just posted there was done 45 times before, each for 1 << N where x is the number of bits to shift left. These act like flags in binary, you're pushing the binary value of 1 N places to the left, which is a unique flag. Each new ability you add you must update the bitmask to include the Nth flag, otherwise you'll be comparing that flag to the bitmask which doesn't have it set.


Back
Top