Commit 2b73d9a4 authored by Nicolas Hadacek's avatar Nicolas Hadacek
Browse files

bug fix

svn path=/trunk/kdegames/kmines/; revision=63064
parent 290ba624
2.0.8
* fix bug that was pausing a stopped game when calling highscores
2.0.7
* fixed bug in mine field drawing with some styles [found by Gerard Delafond
and Tobias Kretschmar] that induces a complete rewrite of the drawing code.
......
......@@ -10,7 +10,7 @@ struct Case {
};
enum GameType { Easy = 0, Normal, Expert, Custom, NbLevels };
enum GameState { Stopped, Playing, Paused, GameOver };
enum GameState { Stopped, Playing, Paused };
enum MouseAction { Reveal = 0, AutoReveal, Mark, UMark };
enum MouseButton { Left = 0, Mid, Right };
......
......@@ -439,7 +439,7 @@ void Field::_endGame()
void Field::pause()
{
if (first_click) return;
if ( first_click || state==Stopped ) return;
/* if already in pause : resume game */
if ( state==Paused ) resume();
......
......@@ -191,9 +191,6 @@ void MainWidget::gameStateChanged(GameState s)
PAUSE_ACTION->setText(i18n("&Pause"));
PAUSE_ACTION->setEnabled(true);
break;
case GameOver:
PAUSE_ACTION->setEnabled(false);
break;
}
}
......
......@@ -71,7 +71,6 @@ void Status::setGameState(GameState s)
case Stopped: emit message(i18n("Game stopped")); break;
case Playing: emit message(i18n("Playing")); break;
case Paused: emit message(i18n("Game paused")); break;
case GameOver: break;
}
emit gameStateChanged(s);
}
......@@ -127,7 +126,7 @@ void Status::_endGame(bool win)
field->stop();
dg->freeze();
field->showMines();
setGameState(GameOver);
setGameState(Stopped);
if (win) {
GameType type = field->level().type;
......
#define VERSION "2.0.7"
#define LONG_VERSION "2.0.7 (31 August 2000)"
#define VERSION "2.0.8"
#define LONG_VERSION "2.0.8 (6 September 2000)"
#define COPYLEFT "(c) 1996-2000, Nicolas Hadacek"
#define EMAIL "hadacek@kde.org"
#define HOMEPAGE "http://azhyd.free.fr/KDE/kmines.php3"
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