projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13102ca
)
Fix mistake: cannot use settings.randomness too early in Hall
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:21:31 +0000
(12:21 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:21:31 +0000
(12:21 +0100)
client/src/views/Hall.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
d59946f
..
4c73df2
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-227,10
+227,7
@@
export default {
vid: parseInt(localStorage.getItem("vid")) || 0,
to: "", //name of challenged player (if any)
cadence: localStorage.getItem("cadence") || "",
- randomness:
- parseInt(localStorage.getItem("challRandomness")) ||
- // Default to global randomness if no challenges issued yet:
- this.st.settings.randomness,
+ randomness: parseInt(localStorage.getItem("challRandomness")) || 2,
// VariantRules object, stored to not interfere with
// diagrams of targetted challenges:
V: null,