Skip to content

Lua cleanup#524

Merged
Asdow merged 7 commits into
masterfrom
lua-cleanup
Sep 29, 2025
Merged

Lua cleanup#524
Asdow merged 7 commits into
masterfrom
lua-cleanup

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented Sep 29, 2025

No description provided.

Don't use SoldierID when matching for profile id
* Removed superfluous for-if loops
* Wrapped function contents inside if(lua_gettop(L)) scopes similar to other, already fixed functions
* Harmonized whitespace
* Added FIXMEs to two unfinished functions
All the calls where this was used are functionally identical when we just supply UID to the original FindSoldierByProfileID() call with fPlayerMercsOnly set to FALSE
@Asdow Asdow merged commit e1acf18 into master Sep 29, 2025
9 checks passed
@Asdow Asdow deleted the lua-cleanup branch September 29, 2025 08:59
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.

1 participant