projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better fix to remove corrupted games vs computer
[vchess.git]
/
client
/
src
/
components
/
ComputerGame.vue
diff --git
a/client/src/components/ComputerGame.vue
b/client/src/components/ComputerGame.vue
index
72e4f5e
..
9cd5f9b
100644
(file)
--- a/
client/src/components/ComputerGame.vue
+++ b/
client/src/components/ComputerGame.vue
@@
-61,7
+61,7
@@
export default {
methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
- if (!game
|| !V.IsGoodFen(game.fen)
) {
+ if (!game) {
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),