Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #==============================================================================
  2. #                           Picture Bug Fix
  3. #------------------------------------------------------------------------------
  4. # Author : Raizen884
  5. # Credits : JohnBolton, Gab!
  6. # Community : www.centrorpgmaker.com
  7. # This script corrects a bug in the default scripts in which pictures continued
  8. # to be updated even after they were erased, which caused lag.
  9. #------------------------------------------------------------------------------
  10. # Place this script above all other scripts in the Materials section.
  11. #==============================================================================
  12. class Sprite_Picture < Sprite
  13.     def update
  14.         super
  15.         if @picture.name != ""
  16.             update_bitmap
  17.             update_origin
  18.             update_position
  19.             update_zoom
  20.             update_other
  21.         else
  22.             self.bitmap.dispose if self.bitmap != nil
  23.         end
  24.     end
  25. end