From 53c7f83daa2137d04e5752f9dc86cdc213508f0b Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Tue, 18 Nov 2014 00:53:11 -0600 Subject: [PATCH] Make naming more consistent --- package.json | 2 +- protocols/openttd.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5dead29..e4f6a8d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "main": "lib/index.js", "author": "Michael Morrison", - "version": "0.2.14", + "version": "0.2.15", "repository" : { "type" : "git", "url" : "https://github.com/sonicsnes/node-gamedig.git" diff --git a/protocols/openttd.js b/protocols/openttd.js index 4717819..616c132 100644 --- a/protocols/openttd.js +++ b/protocols/openttd.js @@ -44,7 +44,7 @@ module.exports = require('./core').extend({ for(var i = 0; i < state.raw.numplayers; i++) { state.players.push({}); } - state.raw.spectators = reader.uint(1); + state.raw.numspectators = reader.uint(1); state.map = reader.string(); state.raw.map_width = reader.uint(2); state.raw.map_height = reader.uint(2);