Remove CHAT_MIN_RANGE

This commit is contained in:
fkloft 2014-03-21 22:30:32 +01:00
parent c6e557a557
commit 2e5da846a0
2 changed files with 1 additions and 9 deletions

View File

@ -41,9 +41,7 @@ window.chat._oldBBox = null;
window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) { window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
if(typeof isFaction !== 'boolean') throw('Need to know if public or faction chat.'); if(typeof isFaction !== 'boolean') throw('Need to know if public or faction chat.');
// get window bounds, and extend to the minimum chat radius var b = map.getBounds();
chat._localRangeCircle.setLatLng(map.getCenter());
var b = map.getBounds().extend(chat._localRangeCircle.getBounds());
// set a current bounding box if none set so far // set a current bounding box if none set so far
if (!chat._oldBBox) chat._oldBBox = b; if (!chat._oldBBox) chat._oldBBox = b;
@ -574,8 +572,6 @@ window.chat.keepScrollPosition = function(box, scrollBefore, isOldMsgs) {
// //
window.chat.setup = function() { window.chat.setup = function() {
window.chat._localRangeCircle = L.circle(map.getCenter(), CHAT_MIN_RANGE*1000);
if (localStorage['iitc-chat-tab']) { if (localStorage['iitc-chat-tab']) {
var t = $('<a>'+localStorage['iitc-chat-tab']+'</a>'); var t = $('<a>'+localStorage['iitc-chat-tab']+'</a>');
window.chat.chooseAnchor(t); window.chat.chooseAnchor(t);

View File

@ -142,10 +142,6 @@ window.MAX_IDLE_TIME = 4*60; // stop updating map after 4min idling
window.PRECACHE_PLAYER_NAMES_ZOOM = 17; // zoom level to start pre-resolving player names window.PRECACHE_PLAYER_NAMES_ZOOM = 17; // zoom level to start pre-resolving player names
window.HIDDEN_SCROLLBAR_ASSUMED_WIDTH = 20; window.HIDDEN_SCROLLBAR_ASSUMED_WIDTH = 20;
window.SIDEBAR_WIDTH = 300; window.SIDEBAR_WIDTH = 300;
// chat messages are requested for the visible viewport. On high zoom
// levels this gets pretty pointless, so request messages in at least a
// X km radius.
window.CHAT_MIN_RANGE = 6;
// this controls how far data is being drawn outside the viewport. Set // this controls how far data is being drawn outside the viewport. Set
// it 0 to only draw entities that intersect the current view. A value // it 0 to only draw entities that intersect the current view. A value
// of one will render an area twice the size of the viewport (or some- // of one will render an area twice the size of the viewport (or some-