mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-23 21:56:46 +00:00
Fix issue with rendering the grid in 3/4 time signature
This commit is contained in:
parent
6fb19dc4d3
commit
a81b6b2d6e
|
@ -237,7 +237,7 @@ class GameOverSubState extends MusicBeatSubState
|
|||
}
|
||||
|
||||
// KEYBOARD ONLY: Restart the level when pressing the assigned key.
|
||||
if (controls.ACCEPT && blueballed)
|
||||
if (controls.ACCEPT && blueballed && !mustNotExit)
|
||||
{
|
||||
blueballed = false;
|
||||
confirmDeath();
|
||||
|
|
|
@ -53,8 +53,9 @@ class HealthIcon extends FunkinSprite
|
|||
|
||||
/**
|
||||
* Apply the "bop" animation once every X steps.
|
||||
* Defaults to once per beat.
|
||||
*/
|
||||
public var bopEvery:Int = 4;
|
||||
public var bopEvery:Int = Constants.STEPS_PER_BEAT;
|
||||
|
||||
/**
|
||||
* The amount, in degrees, to rotate the icon by when boping.
|
||||
|
|
|
@ -201,7 +201,8 @@ class ChartEditorThemeHandler
|
|||
// Selection borders horizontally in the middle.
|
||||
for (i in 1...(Conductor.instance.stepsPerMeasure))
|
||||
{
|
||||
if ((i % Conductor.instance.beatsPerMeasure) == 0)
|
||||
// There may be a different number of beats per measure, but there's always 4 steps per beat.
|
||||
if ((i % Constants.STEPS_PER_BEAT) == 0)
|
||||
{
|
||||
state.gridBitmap.fillRect(new Rectangle(0, (ChartEditorState.GRID_SIZE * i) - (GRID_BEAT_DIVIDER_WIDTH / 2), state.gridBitmap.width,
|
||||
GRID_BEAT_DIVIDER_WIDTH),
|
||||
|
|
Loading…
Reference in a new issue