Comparing version 0.1.33 to 0.1.34
{ | ||
"name": "cheshire", | ||
"version": "0.1.33", | ||
"version": "0.1.34", | ||
"description": "Turn based boardgame framework based on websocket", | ||
@@ -5,0 +5,0 @@ "main": "server/Cheshire.js", |
@@ -35,3 +35,3 @@ var ws = require('ws'); | ||
console.log('Cheshire user attempt to join room - ' + eJoinRoom.name); | ||
if (!Storage[eJoinRoom.name]) { | ||
if (!Storage.rooms[eJoinRoom.name]) { | ||
return self.post('roomJoin', { | ||
@@ -43,3 +43,3 @@ room : eJoinRoom.name, | ||
} | ||
if (Storage[eJoinRoom.name].isPlaying) { | ||
if (Storage.rooms[eJoinRoom.name].isPlaying) { | ||
return self.post('roomJoin', { | ||
@@ -51,4 +51,4 @@ room : eJoinRoom.name, | ||
} | ||
Storage[eJoinRoom.name].join(self); | ||
self.room = Storage[eJoinRoom.name]; | ||
Storage.rooms[eJoinRoom.name].join(self); | ||
self.room = Storage.rooms[eJoinRoom.name]; | ||
self.post('roomJoin', { | ||
@@ -55,0 +55,0 @@ room : eJoinRoom.name, |
Sorry, the diff of this file is not supported yet
48522