ohsp

Prototype for a game with dual thruster controls.
git clone git://git.amin.space/ohsp.git
Log | Files | Refs | LICENSE

commit e0f69810802448aa96b41897bf9803314e02c7e3
parent a3d1e3d3cced44cb6c4da4506123f0ef12e07400
Author: amin <dev@aminmesbah.com>
Date:   Wed, 25 Oct 2017 05:40:13 +0000

Fix scary bug caused by uninitialized variables

Sometimes the axes would start with absurd values.

FossilOrigin-Name: 9ce89f0fc8769e475366d565cc234bf4cc1f665bef60951802f8fec81949bc69
Diffstat:
Msrc/platform_sdl.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/platform_sdl.c b/src/platform_sdl.c @@ -244,8 +244,8 @@ int main(int argc, char *argv[]) struct GameControllerInput controller_input; controller_input.controller_index = 0; controller_input.left_stick_x = 0; - controller_input.right_stick_y = 0; - controller_input.left_stick_x = 0; + controller_input.left_stick_y = 0; + controller_input.right_stick_x = 0; controller_input.right_stick_y = 0; while (running)