mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Merge pull request #837 from dpen2000/FixesTo831
Additional fix on #831
This commit is contained in:
commit
84884ca7d7
1 changed files with 0 additions and 7 deletions
|
@ -45,7 +45,6 @@ module.exports = class LadderView extends RootView
|
|||
@addResourceToLoad(@sessions, 'your_sessions')
|
||||
@addResourceToLoad(@level, 'level')
|
||||
@simulatorsLeaderboardData = new SimulatorsLeaderboardData(me)
|
||||
@simulatorsLeaderboardData.fetch({})
|
||||
@addResourceToLoad(@simulatorsLeaderboardData, 'top_simulators')
|
||||
@simulator = new Simulator()
|
||||
@listenTo(@simulator, 'statusUpdate', @updateSimulationStatus)
|
||||
|
@ -202,18 +201,12 @@ class SimulatorsLeaderboardData extends CocoClass
|
|||
return me.id in (user.id for user in @topSimulators.models)
|
||||
|
||||
nearbySimulators: ->
|
||||
#return [] unless @session?.get('totalScore')
|
||||
l = []
|
||||
above = @playersAbove.models
|
||||
above.reverse()
|
||||
l = l.concat(above)
|
||||
l.push @me
|
||||
l = l.concat(@playersBelow.models) if @playersBelow
|
||||
###
|
||||
if @myRank
|
||||
startRank = @myRank - 4
|
||||
session.rank = startRank + i for session, i in l
|
||||
###
|
||||
l
|
||||
|
||||
allResources: ->
|
||||
|
|
Loading…
Reference in a new issue