Advertisement
Pr0nogo

Untitled

Jul 2nd, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. // 00497110 = InitSpriteVisionSync() -- https://pastebin.com/raw/dRnw5zh5
  2. pub unsafe fn init_sprite_vision_sync(
  3. orig: &dyn Fn()->u32)->u32 {
  4. let mut result: u32 = 0;
  5. ptr::memset(bw::current_visibility_hash, 0, sizeof(bw::current_visibility_hash));
  6. bw::want_visibility_hash = 0;
  7. bw::region_visibility_hash = 0;
  8. bw::current_hash_offset = 0;
  9. while result < 228 {
  10. if bw::units_dat_special_ability_flags[result] & 1 == 0 {
  11. if bw::units_dat_staredit_availability_flags[result] & 1 >= 1 {
  12. bw::sprite_include_in_vision_sync[bw::flingy_sprite_id[bw::units_dat_flingy[result]]] = 1;
  13. }
  14. result += 1;
  15. }
  16. }
  17. return result;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement