forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya no cambia de borde el jugador si tampoco puede cambiar de habitación
This commit is contained in:
@@ -198,9 +198,11 @@ void Game::checkPlayerOnBorder()
|
||||
{
|
||||
if (mPlayer->getOnBorder())
|
||||
{
|
||||
changeRoom(mRoom->getRoom(mPlayer->getBorder()));
|
||||
if (changeRoom(mRoom->getRoom(mPlayer->getBorder())))
|
||||
{
|
||||
mPlayer->switchBorders();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Comprueba si el jugador esta sobre el suelo
|
||||
|
||||
Reference in New Issue
Block a user