Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Andreas Nedbal
FarmingGame-web
Commits
3007d9dd
Commit
3007d9dd
authored
Oct 17, 2014
by
pixeldesu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: event not triggered because random number is set too low
parent
85f67093
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
coffee/main.coffee
coffee/main.coffee
+1
-1
js/main.js
js/main.js
+1
-1
No files found.
coffee/main.coffee
View file @
3007d9dd
...
...
@@ -164,7 +164,7 @@ progressTimer = ->
eventTimer
=
->
currPos
=
0
NProgress
.
done
()
ev
=
Math
.
floor
((
Math
.
random
()
*
10000000
)
%
7
)
ev
=
Math
.
floor
((
Math
.
random
()
*
10000000
)
%
8
)
console
.
log
"Event
#{
ev
}
"
...
...
js/main.js
View file @
3007d9dd
...
...
@@ -174,7 +174,7 @@
var
ev
,
f
,
g
,
i
,
message
,
title
,
w
;
currPos
=
0
;
NProgress
.
done
();
ev
=
Math
.
floor
((
Math
.
random
()
*
10000000
)
%
7
);
ev
=
Math
.
floor
((
Math
.
random
()
*
10000000
)
%
8
);
console
.
log
(
"
Event
"
+
ev
);
switch
(
ev
)
{
case
0
:
...
...
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