special_pal October 17, 2010, 09:08:55 pm Hi,together with Sim we tried to replace the player colour schemes. This is not possible, because these data serve more than one purpose - in fact, so far we found these interpretations:player schemesminimapgui - buttons etc.fontintro screenIndexing into the array changes what programmer writes from triple to char. That's all, still magic numbers and no symbolic names. This feels wonderfully 1980 - a relic from the ancient times of Simutrans, no doubt At this moment I haven't looked yet where the array is used in the code. However - is this the desirable state? Are there any reasons to not attempt a rewrite? If so, what should be the new organization of data like? As far as I can tell, minimap should have its own array and the gui-related stuff perhaps macros (constants?).edit: Of course I'll gladly do the coding, but talking first seems more safe Quote Selected Last Edit: October 17, 2010, 09:15:49 pm by VS
Re: special_pal Reply #1 – October 17, 2010, 11:20:18 pm Reason not to rewrite:colors are mostly balancedcolors are used for UI and for minimapOne could use another array for player colors, since those are used normally with a flag. (Mostly) This is probably the only proper way of doing this.What is the purpose of the rewrite? Quote Selected