bugfix(view): Fix and improve map border camera constraints behavior to allow see all areas of the map comfortably#1752
Closed
xezon wants to merge 2 commits intoTheSuperHackers:mainfrom
Closed
Conversation
1 task
xezon
commented
Oct 27, 2025
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Show resolved
Hide resolved
xezon
commented
Oct 27, 2025
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Outdated
Show resolved
Hide resolved
xezon
commented
Oct 27, 2025
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
Outdated
Show resolved
Hide resolved
600296d to
6eac2f4
Compare
…o allow see all areas of the map comfortably (#1752)
6eac2f4 to
47aeea4
Compare
|
@Stubbjax I think we shouldn't test it widescreen until the scale fix is merged
main: But I will give it a go with a unit at the bottom of the screen on the same map. |
Author
|
I looked into that and issue #1486 is responsible for this. It is related to |
Mauller
reviewed
Oct 29, 2025
|
|
||
| if (TheGlobalData->m_debugAI) { | ||
| offset = -1000; // push out the constraints so we can look at staging areas. | ||
| screen.y = 0.95f*getHeight()+m_originY; |
There was a problem hiding this comment.
I wonder if this factor of 0.95 is causing some of the problems with the lower edge since it is reducing the calculated height with offset.
They don't seem to do this along the X of the screen.
34 tasks
Author
|
This Pull will be obsolete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Merge with Rebase
This change fixes and improves the map border camera constraint behavior to allow see all areas of the map comfortably.
The first commit refactors the code a bit to be more readable.
The second commit does a number of changes to implement the improved camera constraints behavior.
TODO