Skip to content
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

Increased Team Sizes (ITS) #331

Draft
wants to merge 179 commits into
base: master
Choose a base branch
from
Draft

Increased Team Sizes (ITS) #331

wants to merge 179 commits into from

Conversation

Asdow
Copy link
Contributor

@Asdow Asdow commented Nov 9, 2024

BREAKS SAVEGAME COMPATIBILITY

Change SOLDIERTYPE ubID to UINT16, lifting the restrictions on max amount of mercs, enemies, civs, creatures in tactical mode.

Asdow added 30 commits October 10, 2022 10:08
uint8 -> uint16
Fix an access to member variable that prevented compilation
Fix missing variable declaration
Pressing Shift and right or left arrow buttons, 'a' or 'd' buttons, or previous or next ingame buttons now advance one whole page. Without shift pressed down, all three function as original and move one merc at a time.
Unimplemented feature of browsing 4 mercs forward/backwards in personnel page.
ubEnemyKilledOnAttacker is size UINT16 but loading function was reading only UINT8 worth for it
As per the old comment, even though the field value is updated partially according to whether there are known enemies present or not, it's not used for anything.
Goal is to convert all use of SOLDIERTYPE->ubID and any other ID fields that reference the same ID to a safer type than UINT16. Same with any function that's supposed to take ubID
All raw array accesses should be done with these instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increased team sizes
1 participant