phoboslab / Impact

HTML5 Game Engine
MIT License
1.99k stars 204 forks source link

ig.Debug.addNumber 'width' argument unused #51

Closed Joncom closed 5 years ago

Joncom commented 5 years ago

showNumber takes a width argument which gets passed into addNumber

https://github.com/phoboslab/Impact/blob/10020badf6babda48af8bcc203333e5d2f4eb8cf/lib/impact/debug/menu.js#L81-L86

... which ultimately never gets used for anything.

https://github.com/phoboslab/Impact/blob/10020badf6babda48af8bcc203333e5d2f4eb8cf/lib/impact/debug/menu.js#L72-L78

Furthermore, no showNumber calls ever bother to pass in width in the first place...

https://github.com/phoboslab/Impact/blob/10020badf6babda48af8bcc203333e5d2f4eb8cf/lib/impact/debug/menu.js#L184-L189