-
Notifications
You must be signed in to change notification settings - Fork 81
[GEN] Fix wrong water color on radar #823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Did you see how this is handled in zero hour? It's likely that zero hour implicitly sets these between 0 and 1 in config somewhere else. |
The radar water color has a default value defined in water.h in integer-notation (0-255) RadarWaterColor is defined in ZH's ini file, but not in Generals. Generals didn't use an INI reader for radar water calor before the backport introduced in #777 So Generals returns to the default value (in integer notation), while ZH returns the INI value that is converted to float-notation by the INI parser. The original bug was in ZH (default values being integer, rather then float), but wasn't discovered, because INI overwrote them. With no INI in generals, the bug appeared. The fix should be to convert the default value from integer to float notation for both games, although ZH uses the INI. Will adjust accordingly |
7784eac
to
17596b7
Compare
Does Generals have a parser for the ini and just not have it defined? Might want to also back port the parser if not to align things more with the ZH code? |
RGB parser is present, its just the INI configuration that is the issue |
17596b7
to
fd24bed
Compare
Uh oh!
There was an error while loading. Please reload this page.