Skip to content

Commit

Permalink
Only send chat to players with emitters
Browse files Browse the repository at this point in the history
  • Loading branch information
billstclair committed May 7, 2012
1 parent 054ede2 commit 3492720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/lib/mazeServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function MazeServer() {
var hearers = {};
var ifWarring = false;
var addEmitter = function(otherPlayer) {
if (!ifWarring || otherPlayer.warring) {
if (otherPlayer.emitter && (!ifWarring || otherPlayer.warring)) {
hearers[otherPlayer.uid] = otherPlayer.emitter;
}
};
Expand Down
4 changes: 1 addition & 3 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Warn if no JavaScript

Bullets
Warring mode players can hear chat from all other warring mode players
Gambling

Sound
Expand All @@ -15,14 +14,13 @@ Sound
Death - Add Wilhelm scream

Scrollback for chat
timestamps
Web links

Registration
MongoDB with Mongoose
Consider Riak instead of Redis
https://github.com/ha/doozerd
https://github.com/dannycoates/doozerjs
Consider other databases
Track bandwidth and storage
PayPal and Bitcoin interface
https://en.bitcoin.it/wiki/Bitcoind
Expand Down

0 comments on commit 3492720

Please sign in to comment.