In original difficulty, no moving the camera on autoscrolling missions.

This commit is contained in:
onpon4 2015-05-20 10:27:21 -04:00
parent baab0e7897
commit 8698125f5f
1 changed files with 56 additions and 46 deletions

View File

@ -1233,6 +1233,10 @@ static void game_doPlayer()
} }
if (engine.done == 0) if (engine.done == 0)
{
if ((currentGame.difficulty != DIFFICULTY_ORIGINAL) ||
((currentGame.area != MISN_ELLESH) &&
(currentGame.area != MISN_MARS)))
{ {
if (xmoved) if (xmoved)
{ {
@ -1294,6 +1298,12 @@ static void game_doPlayer()
} }
} }
} }
else
{
LIMIT(player.x, xViewBorder, screen->w - xViewBorder);
LIMIT(player.y, yViewBorder, screen->h - yViewBorder);
}
}
if ((player.maxShield <= 1) || (player.shield > engine.lowShield)) if ((player.maxShield <= 1) || (player.shield > engine.lowShield))
explosion_addEngine(&player); explosion_addEngine(&player);