fix: no aparecían nunca diskitos
This commit is contained in:
@@ -94,7 +94,7 @@ void Player::init()
|
||||
}
|
||||
|
||||
// Actua en consecuencia de la entrada recibida
|
||||
void Player::setInput(Uint8 input)
|
||||
void Player::setInput(int input)
|
||||
{
|
||||
switch (input)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ void Player::render()
|
||||
}
|
||||
|
||||
// Establece el estado del jugador cuando camina
|
||||
void Player::setWalkingStatus(Uint8 status)
|
||||
void Player::setWalkingStatus(int status)
|
||||
{
|
||||
// Si cambiamos de estado, reiniciamos la animación
|
||||
if (statusWalking != status)
|
||||
@@ -218,7 +218,7 @@ void Player::setWalkingStatus(Uint8 status)
|
||||
}
|
||||
|
||||
// Establece el estado del jugador cuando dispara
|
||||
void Player::setFiringStatus(Uint8 status)
|
||||
void Player::setFiringStatus(int status)
|
||||
{
|
||||
// Si cambiamos de estado, reiniciamos la animación
|
||||
if (statusFiring != status)
|
||||
@@ -546,7 +546,7 @@ void Player::disableInput()
|
||||
}
|
||||
|
||||
// Devuelve el número de cafes actuales
|
||||
Uint8 Player::getCoffees()
|
||||
int Player::getCoffees()
|
||||
{
|
||||
return coffees;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user