Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int translate_hash(int orig_hash, bool negate_hash)
- {
- int hash_offset;
- int new_hash;
- hash_offset = get_translated_hash_offset(orig_hash);
- new_hash = orig_hash; new_hash = (new_hash + hash_offset);
- if (negate_hash)
- {
- new_hash = (new_hash * -1);
- }
- orig_hash = new_hash;
- return orig_hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement