mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
More aligning of code
This commit is contained in:
@@ -65,7 +65,7 @@ class Game_System
|
||||
if bgm != nil && bgm.name != ""
|
||||
if FileTest.audio_exist?("Audio/BGM/" + bgm.name)
|
||||
bgm_play_internal2("Audio/BGM/" + bgm.name,
|
||||
bgm.volume, bgm.pitch, @bgm_position) if !@defaultBGM
|
||||
bgm.volume, bgm.pitch, @bgm_position) if !@defaultBGM
|
||||
end
|
||||
else
|
||||
@bgm_position = position if !@bgm_paused
|
||||
@@ -74,7 +74,7 @@ class Game_System
|
||||
end
|
||||
if @defaultBGM
|
||||
bgm_play_internal2("Audio/BGM/" + @defaultBGM.name,
|
||||
@defaultBGM.volume, @defaultBGM.pitch, @bgm_position)
|
||||
@defaultBGM.volume, @defaultBGM.pitch, @bgm_position)
|
||||
end
|
||||
Graphics.frame_reset
|
||||
end
|
||||
|
||||
@@ -270,15 +270,14 @@ class PokemonMapFactory
|
||||
# the array (3,-4), because (5-2=3) and (1-5=-4).
|
||||
def getThisAndOtherEventRelativePos(thisEvent, otherEvent)
|
||||
return [0, 0] if !thisEvent || !otherEvent
|
||||
return getRelativePos(
|
||||
thisEvent.map.map_id, thisEvent.x, thisEvent.y,
|
||||
otherEvent.map.map_id, otherEvent.x, otherEvent.y)
|
||||
return getRelativePos(thisEvent.map.map_id, thisEvent.x, thisEvent.y,
|
||||
otherEvent.map.map_id, otherEvent.x, otherEvent.y)
|
||||
end
|
||||
|
||||
def getThisAndOtherPosRelativePos(thisEvent, otherMapID, otherX, otherY)
|
||||
return [0, 0] if !thisEvent
|
||||
return getRelativePos(
|
||||
thisEvent.map.map_id, thisEvent.x, thisEvent.y, otherMapID, otherX, otherY)
|
||||
return getRelativePos(thisEvent.map.map_id, thisEvent.x, thisEvent.y,
|
||||
otherMapID, otherX, otherY)
|
||||
end
|
||||
|
||||
# Unused
|
||||
|
||||
Reference in New Issue
Block a user