mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2024-11-28 16:58:56 +08:00
CornerCorrection fix
This commit is contained in:
parent
9ee51d2427
commit
ac45b58305
|
@ -77,7 +77,7 @@ namespace Strawberry
|
|||
SDLImage.Init(.PNG | .JPG);
|
||||
SDLMixer.OpenAudio(44100, SDLMixer.MIX_DEFAULT_FORMAT, 2, 4096);
|
||||
SDLTTF.Init();
|
||||
Input.Init(gamepadLimit);
|
||||
Input.[Friend]Init(gamepadLimit);
|
||||
}
|
||||
|
||||
public ~this()
|
||||
|
@ -97,7 +97,7 @@ namespace Strawberry
|
|||
delete VirtualInputs;
|
||||
}
|
||||
|
||||
Input.Dispose();
|
||||
Input.[Friend]Dispose();
|
||||
Game = null;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Strawberry
|
|||
static private bool[] previousKeyboard;
|
||||
static private SDL.SDL_GameController*[] gamepads;
|
||||
|
||||
static public void Init(int gamepadLimit)
|
||||
static private void Init(int gamepadLimit)
|
||||
{
|
||||
keyboard = SDL.GetKeyboardState(null);
|
||||
previousKeyboard = new bool[(int)SDL.Scancode.NUMSCANCODES];
|
||||
|
@ -20,7 +20,7 @@ namespace Strawberry
|
|||
gamepads[i] = SDL.GameControllerOpen((int32)i);
|
||||
}
|
||||
|
||||
static public void Dispose()
|
||||
static private void Dispose()
|
||||
{
|
||||
delete previousKeyboard;
|
||||
delete gamepads;
|
||||
|
|
|
@ -210,7 +210,7 @@ namespace Strawberry
|
|||
else
|
||||
checker = scope:: (p) => !Check(Scene, p) && !Check<Solid>(p);
|
||||
|
||||
for (let i < maxAmount)
|
||||
for (int i = 1; i <= maxAmount; i++)
|
||||
{
|
||||
for (int j = -1; j <= 1; j += 2)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user