Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KGoldrunner
Commits
9855f626
Commit
9855f626
authored
Oct 06, 2019
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Applications/19.08'
parents
f39e7d76
be77f2fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/kgrgame.cpp
src/kgrgame.cpp
+5
-1
No files found.
src/kgrgame.cpp
View file @
9855f626
...
...
@@ -62,6 +62,8 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <chrono>
#include "kgoldrunner_debug.h"
// TODO - Can we change over to KScoreDialog?
...
...
@@ -115,7 +117,9 @@ KGrGame::KGrGame (KGrView * theView,
connect
(
dyingTimer
,
&
QTimer
::
timeout
,
this
,
&
KGrGame
::
finalBreath
);
// Initialise random number generator.
randomGen
=
new
KRandomSequence
(
std
::
time
(
nullptr
));
const
auto
tse
=
std
::
chrono
::
system_clock
::
now
().
time_since_epoch
();
const
long
int
seed
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
tse
).
count
();
randomGen
=
new
KRandomSequence
(
seed
);
//qCDebug(KGOLDRUNNER_LOG) << "RANDOM NUMBER GENERATOR INITIALISED";
scene
->
setReplayMessage
(
i18n
(
"Click anywhere to begin live play"
));
...
...
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