- Arreglats un milló de warnings tontos (i alguno serio)

This commit is contained in:
2024-10-03 13:40:54 +02:00
parent b44ba3517a
commit 9ca1e59f44
11 changed files with 40 additions and 31 deletions

View File

@@ -32,10 +32,14 @@ namespace modules
return OPTION_EIXIR;
}
if (controller::pressed(KEY_DOWN) || input::keyPressed(SDL_SCANCODE_DOWN))
{
selected_option++; if (selected_option==5) selected_option=0;
}
if (controller::pressed(KEY_UP) || input::keyPressed(SDL_SCANCODE_UP))
{
selected_option--; if (selected_option<0) selected_option=4;
}
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK) || input::keyPressed(SDL_SCANCODE_SPACE) ) {
return selected_option;