Varios arreglos
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#include "options.h"
|
||||
#include <SDL2/SDL_gamecontroller.h> // para SDL_GameControllerButton, SDL_C...
|
||||
#include <algorithm> // para max, min
|
||||
#include <fstream> // para basic_ostream, operator<<, basi...
|
||||
#include <iostream> // para cout
|
||||
#include <vector> // para vector
|
||||
#include "input.h" // para inputs_e, InputDeviceToUse::ANY, INPUT_...
|
||||
#include "lang.h" // para lang_e
|
||||
#include "screen.h" // para ScreenVideoMode, ScreenFilter
|
||||
#include "utils.h" // para OptionsController, Options, op_...
|
||||
#include <SDL2/SDL_gamecontroller.h> // Para SDL_GameControllerButton
|
||||
#include <algorithm> // Para clamp
|
||||
#include <fstream> // Para basic_ostream, operator<<, basi...
|
||||
#include <iostream> // Para cout
|
||||
#include <utility> // Para swap
|
||||
#include <vector> // Para vector
|
||||
#include "input.h" // Para InputDeviceToUse
|
||||
#include "lang.h" // Para Code
|
||||
#include "screen.h" // Para ScreenVideoMode, ScreenFilter
|
||||
#include "utils.h" // Para boolToString, stringToBool, get...
|
||||
|
||||
// Variables
|
||||
Options options;
|
||||
@@ -382,7 +383,7 @@ void swapOptionsControllers()
|
||||
// Averigua quien está usando el teclado
|
||||
int getPlayerWhoUsesKeyboard()
|
||||
{
|
||||
for (auto &controller : options.controllers)
|
||||
for (const auto &controller : options.controllers)
|
||||
{
|
||||
if (controller.type == InputDeviceToUse::ANY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user