Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KMines
Commits
2b73d9a4
Commit
2b73d9a4
authored
Sep 07, 2000
by
Nicolas Hadacek
Browse files
bug fix
svn path=/trunk/kdegames/kmines/; revision=63064
parent
290ba624
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
2b73d9a4
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.
...
...
defines.h
View file @
2b73d9a4
...
...
@@ -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
};
...
...
field.cpp
View file @
2b73d9a4
...
...
@@ -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
();
...
...
main.cpp
View file @
2b73d9a4
...
...
@@ -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
;
}
}
...
...
status.cpp
View file @
2b73d9a4
...
...
@@ -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
;
...
...
version.h
View file @
2b73d9a4
#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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment