mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 22:09:55 +00:00
camera fix idk
This commit is contained in:
parent
48917137f3
commit
5489ed932f
1 changed files with 10 additions and 2 deletions
|
|
@ -268,7 +268,11 @@ class Game_Map
|
|||
#--------------------------------------------------------------------------
|
||||
def scroll_down(distance)
|
||||
if $game_switches[98] == true
|
||||
@display_y = [@display_y + distance, (self.height - Graphics.height / 28) * 128].min
|
||||
if self.height < Graphics.height / 28
|
||||
@display_y = self.height / 2
|
||||
else
|
||||
@display_y = [@display_y + distance, (self.height - Graphics.height / 28) * 128].min
|
||||
end
|
||||
else
|
||||
@display_y += distance
|
||||
end
|
||||
|
|
@ -301,7 +305,11 @@ class Game_Map
|
|||
#--------------------------------------------------------------------------
|
||||
def scroll_up(distance)
|
||||
if $game_switches[98] == true
|
||||
@display_y = [@display_y - distance, 0].max
|
||||
if self.height < Graphics.height / 28
|
||||
@display_y = self.height / 2
|
||||
else
|
||||
@display_y = [@display_y - distance, 0].max
|
||||
end
|
||||
else
|
||||
@display_y -= distance
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue