Before in gamedescription the color was calculated by name including rate but normaly in lobby it is calculate by only name so use splitnamerate function and only use name for calculate color
Details
Details
- Reviewers
elexis Imarok - Commits
- rP20593: Fix name colors in gamedescription
look lobby gamedescription players on a game f.e. check colors from names with rates and compare to them in lobby player list without and with patch
Diff Detail
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
(That typeof getPlayerColor == 'function' isn' too clean. We might have cought this inconsistency in lobby.js if we had passed the colorization function from the caller.)
(Some day the ratings might should not be part of the nick anymore.)