diff options
Diffstat (limited to 'game.c')
-rw-r--r-- | game.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -130,7 +130,8 @@ int play_level(SDL_Renderer* renderer, struct level_struct *currentlevel) int got_event = SDL_PollEvent(&userinput); // Player movement - signed int y, x; + signed int x = 0; + signed int y = 0; if ( userinput.type == SDL_KEYDOWN ) { switch ( userinput.key.keysym.sym ) { |