Merge pull request #660 from dpen2000/SimulatorTextFix

Fix "Simulating game between" line to only have one "and"
This commit is contained in:
Nick Winter 2014-03-23 09:13:20 -07:00
commit f8f5f718bb

View file

@ -114,7 +114,7 @@ module.exports = class LadderView extends RootView
for index in [0...creatorNames.length]
unless creatorNames[index]
creatorNames[index] = "Anonymous"
@simulationStatus += " and " + creatorNames[index]
@simulationStatus += (if index != 0 then " and " else "") + creatorNames[index]
@simulationStatus += "..."
catch e
console.log "There was a problem with the named simulation status: #{e}"