Skip to content

Commit

Permalink
use [email protected]. disable checksum when applying fossil-delta.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Oct 26, 2017
1 parent 252f572 commit 1712f85
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
53 changes: 27 additions & 26 deletions dist/colyseus.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colyseus.js",
"version": "0.7.5-alpha.0",
"version": "0.7.5",
"description": "Multiplayer Game Client for the Browser",
"keywords": [
"multiplayer",
Expand Down Expand Up @@ -30,15 +30,15 @@
"dependencies": {
"@gamestdio/clock": "^1.1.0",
"@gamestdio/websocket": "^0.1.13",
"delta-listener": "^2.1.0-alpha.0",
"fossil-delta": "^0.2.5",
"delta-listener": "^2.1.0",
"fossil-delta": "^1.0.0",
"msgpack-lite": "^0.1.20",
"signals.js": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/fast-json-patch": "^1.0.4",
"@types/fossil-delta": "^0.2.1",
"@types/fossil-delta": "^1.0.0",
"@types/msgpack-lite": "^0.1.1",
"chai": "^3.5.0",
"mocha": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Room<T=any> extends DeltaContainer<T & any> {
this.clock.tick();

// apply patch
this._previousState = fossilDelta.apply( this._previousState, binaryPatch );
this._previousState = (<any>fossilDelta).apply( this._previousState, binaryPatch, { verifyChecksum: false } );

// trigger state callbacks
this.set( msgpack.decode( this._previousState ) );
Expand Down

0 comments on commit 1712f85

Please sign in to comment.