CornerCorrection fix

This commit is contained in:
Matt Thorson 2020-05-21 20:33:29 -07:00
parent 9ee51d2427
commit ac45b58305
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ namespace Strawberry
SDLImage.Init(.PNG | .JPG); SDLImage.Init(.PNG | .JPG);
SDLMixer.OpenAudio(44100, SDLMixer.MIX_DEFAULT_FORMAT, 2, 4096); SDLMixer.OpenAudio(44100, SDLMixer.MIX_DEFAULT_FORMAT, 2, 4096);
SDLTTF.Init(); SDLTTF.Init();
Input.Init(gamepadLimit); Input.[Friend]Init(gamepadLimit);
} }
public ~this() public ~this()
@ -97,7 +97,7 @@ namespace Strawberry
delete VirtualInputs; delete VirtualInputs;
} }
Input.Dispose(); Input.[Friend]Dispose();
Game = null; Game = null;
} }

View File

@ -10,7 +10,7 @@ namespace Strawberry
static private bool[] previousKeyboard; static private bool[] previousKeyboard;
static private SDL.SDL_GameController*[] gamepads; static private SDL.SDL_GameController*[] gamepads;
static public void Init(int gamepadLimit) static private void Init(int gamepadLimit)
{ {
keyboard = SDL.GetKeyboardState(null); keyboard = SDL.GetKeyboardState(null);
previousKeyboard = new bool[(int)SDL.Scancode.NUMSCANCODES]; previousKeyboard = new bool[(int)SDL.Scancode.NUMSCANCODES];
@ -20,7 +20,7 @@ namespace Strawberry
gamepads[i] = SDL.GameControllerOpen((int32)i); gamepads[i] = SDL.GameControllerOpen((int32)i);
} }
static public void Dispose() static private void Dispose()
{ {
delete previousKeyboard; delete previousKeyboard;
delete gamepads; delete gamepads;

View File

@ -210,7 +210,7 @@ namespace Strawberry
else else
checker = scope:: (p) => !Check(Scene, p) && !Check<Solid>(p); 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) for (int j = -1; j <= 1; j += 2)
{ {