mozilla/BrowserQuest — pull request #84 by Warpten (2012-04-26 17:08:45+00:00)
Title: Simplified Utils.clamp

Dunno if the old code was untentionnal as I'm not a good nerd on JavaScript but I guess that using Math.min should (?) be faster. I didn't doublecheck its execution speed, but I guess it's pretty decent. Anyways, it's working.

Have a nice day, sirs.