Commit 1b87c11a authored by alistert's avatar alistert

Various small changes.

parent 1383f928
...@@ -984,8 +984,6 @@ void Event::draw (unsigned int ticks, int change) { ...@@ -984,8 +984,6 @@ void Event::draw (unsigned int ticks, int change) {
// Decide on the frame to draw // Decide on the frame to draw
anim->setFrame(frame + gridX + gridY, true); anim->setFrame(frame + gridX + gridY, true);
if (ticks < flashTime) anim->flashPalette(0);
// Correct the position without altering the animation // Correct the position without altering the animation
if (noAnimOffset) { if (noAnimOffset) {
...@@ -1031,6 +1029,8 @@ void Event::draw (unsigned int ticks, int change) { ...@@ -1031,6 +1029,8 @@ void Event::draw (unsigned int ticks, int change) {
// In case an event can be drawn normally // In case an event can be drawn normally
if (ticks < flashTime) anim->flashPalette(0);
anim->draw(changeX, changeY); anim->draw(changeX, changeY);
} }
......
...@@ -232,9 +232,10 @@ int GameMenu::newGameDifficulty (GameModeType mode, int levelNum, int worldNum) ...@@ -232,9 +232,10 @@ int GameMenu::newGameDifficulty (GameModeType mode, int levelNum, int worldNum)
} }
int GameMenu::newGameLevel (GameModeType mode) { int GameMenu::loadGame () {
// TODO: Actual loading of saved games
/*
int option, worldNum, levelNum; int option, worldNum, levelNum;
worldNum = levelNum = option = 0; worldNum = levelNum = option = 0;
...@@ -286,8 +287,7 @@ int GameMenu::newGameLevel (GameModeType mode) { ...@@ -286,8 +287,7 @@ int GameMenu::newGameLevel (GameModeType mode) {
playSound(S_ORB); playSound(S_ORB);
if (newGameDifficulty(mode, levelNum, worldNum) == E_QUIT) if (newGameDifficulty(M_SINGLE, levelNum, worldNum) == E_QUIT) return E_QUIT;
return E_QUIT;
video.setPalette(menuPalette); video.setPalette(menuPalette);
...@@ -296,7 +296,11 @@ int GameMenu::newGameLevel (GameModeType mode) { ...@@ -296,7 +296,11 @@ int GameMenu::newGameLevel (GameModeType mode) {
} }
return E_NONE; return E_NONE;
*/
}
int GameMenu::newGameLevel (GameModeType mode) {
char* fileName; char* fileName;
int ret; int ret;
...@@ -577,12 +581,3 @@ int GameMenu::newGame () { ...@@ -577,12 +581,3 @@ int GameMenu::newGame () {
} }
int GameMenu::loadGame () {
// TODO: Actual loading of saved games
return newGameLevel(M_SINGLE);
}
...@@ -130,6 +130,7 @@ void JJ2LevelPlayer::reset (unsigned char startX, unsigned char startY) { ...@@ -130,6 +130,7 @@ void JJ2LevelPlayer::reset (unsigned char startX, unsigned char startY) {
energy = 5; energy = 5;
floating = false; floating = false;
facing = true; facing = true;
animType = PA_RSTAND;
reaction = JJ2PR_NONE; reaction = JJ2PR_NONE;
reactionTime = 0; reactionTime = 0;
jumpHeight = ITOF(92); jumpHeight = ITOF(92);
......
...@@ -128,6 +128,7 @@ void LevelPlayer::reset (unsigned char startX, unsigned char startY) { ...@@ -128,6 +128,7 @@ void LevelPlayer::reset (unsigned char startX, unsigned char startY) {
energy = 4; energy = 4;
floating = false; floating = false;
facing = true; facing = true;
animType = PA_RSTAND;
reaction = PR_NONE; reaction = PR_NONE;
reactionTime = 0; reactionTime = 0;
jumpHeight = ITOF(92); jumpHeight = ITOF(92);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment