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

hardcode lua array size #929

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

barbeque-squared
Copy link
Member

the array size for the lua functions has no relation whatsoever with IMaxPlayerCount, they currently just happen to be the same value

this is a similar change to what was done in #554, specifically #554 (comment)
I don't think it's wrong to use a hardcoded number here: it's a static array, it seems to be how Pascal works, it's done hundreds of other times throughout the code -- see for example UIni.pas.

And maybe there is an even better way, but at the very least, I think this PR objectively improves the code.

…IMaxPlayerCount, they currently just happen to be the same value
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