Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 00497110 = InitSpriteVisionSync() -- https://pastebin.com/raw/dRnw5zh5
- pub unsafe fn init_sprite_vision_sync(
- orig: &dyn Fn()->u32)->u32 {
- let mut result: u32 = 0;
- ptr::memset(bw::current_visibility_hash, 0, sizeof(bw::current_visibility_hash));
- bw::want_visibility_hash = 0;
- bw::region_visibility_hash = 0;
- bw::current_hash_offset = 0;
- while result < 228 {
- if bw::units_dat_special_ability_flags[result] & 1 == 0 {
- if bw::units_dat_staredit_availability_flags[result] & 1 >= 1 {
- bw::sprite_include_in_vision_sync[bw::flingy_sprite_id[bw::units_dat_flingy[result]]] = 1;
- }
- result += 1;
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement