-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mystery ternary in rendertexturepanel()
#203
Comments
https://github.com/project-imprimis/libprimis/blob/main/src/engine/world/octaedit.cpp#L1869 The variable int x = w*1800/h-s-50,
r = s; Variable gle::attribf(x, y); gle::attrib(tc[0]);
gle::attribf(x+r, y); gle::attrib(tc[1]);
gle::attribf(x, y+r); gle::attrib(tc[3]);
gle::attribf(x+r, y+r); gle::attrib(tc[2]); |
Why the values of |
No clue, may have been used to resolve an undocumented edge case? Remove the ternary and keep the variable |
The That being said, the texture panel is a legacy thing and should probably be replaced by an appropriate UI implementation. |
octaedit.cpp's
rendertexturepanel
has an assignment with mysteriously arbitrary values assigned to a throwaway variable, which should be commented properly.The text was updated successfully, but these errors were encountered: