Fix subcells imported from Gen1 maps - #21397
Merged
Merged
Conversation
JovialFeline
force-pushed
the
import-gen1-subcells
branch
from
April 12, 2024 01:48
a408688 to
cd7ae5d
Compare
anvilvapre
approved these changes
Apr 14, 2024
anvilvapre
left a comment
Contributor
There was a problem hiding this comment.
Perhaps use an enum to indicate the direction/index. To avoid similar issues in future.
Contributor
Author
Would you prefer that to a comment? |
RoosterDragon
approved these changes
Apr 27, 2024
Member
This was referenced Jul 19, 2024
This was referenced Feb 23, 2026
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.
This should correct a minor issue with RA/CnC imports of infantry. The subcell number is copied as-is, though ORA's assignment for them is different.
OpenRA/OpenRA.Game/Map/MapGrid.cs
Lines 119 to 124 in 7b82d85
Below, each number is the original subcell index. The SW corner becomes the center and a possible duplicate, while the SE corner replaces the SW one.
The Gen2 importer has its own adjustments.
OpenRA/OpenRA.Mods.Cnc/UtilityCommands/ImportGen2MapCommand.cs
Lines 286 to 295 in 4fca85f
I had seen odd subcells on occasion but hadn't dug into it until I noticed Soviets in
allies-03were less likely to be hidden by trees. That is something the enemy does fairly often in Tiberian Dawn as well.