mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Permanently cached some graphics (player charsets, windowskins and related graphics)
This commit is contained in:
@@ -122,6 +122,7 @@ class Sprite_Character < RPG::Sprite
|
||||
@charbitmap.dispose if @charbitmap
|
||||
@charbitmap = AnimatedBitmap.new(
|
||||
"Graphics/Characters/"+@character_name,@character_hue)
|
||||
RPG::Cache.addRef("Graphics/Characters/", @character_name, @character_hue) if @character == $game_player
|
||||
@charbitmapAnimated = true
|
||||
@bushbitmap.dispose if @bushbitmap
|
||||
@bushbitmap = nil
|
||||
|
||||
@@ -10,6 +10,8 @@ class Sprite_SurfBase
|
||||
@disposed = false
|
||||
@surfbitmap = AnimatedBitmap.new("Graphics/Characters/base_surf")
|
||||
@divebitmap = AnimatedBitmap.new("Graphics/Characters/base_dive")
|
||||
RPG::Cache.addRef("Graphics/Characters/base_surf")
|
||||
RPG::Cache.addRef("Graphics/Characters/base_dive")
|
||||
@cws = @surfbitmap.width/4
|
||||
@chs = @surfbitmap.height/4
|
||||
@cwd = @divebitmap.width/4
|
||||
|
||||
Reference in New Issue
Block a user