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

Fix edge-case positional/named argument handling in image() #1627

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Jan 19, 2024

Fixes #1261

When using named arguments in image() or new /image(), using a string in the second positional argument will now place an implicit null in between the first and second arg. This is what BYOND does:

image

BYOND does this even when there are no named arguments being used. For the sake of performance I'm just ignoring that here in the hopes no one depends on such niche behavior. This does mean keeping the argument-skipping behavior in DreamObjectImage's initializer.

@wixoaGit wixoaGit merged commit 2c1c73c into OpenDreamProject:master Jan 21, 2024
6 checks passed
@wixoaGit wixoaGit deleted the fix_image_args branch January 21, 2024 03:02
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.

Named arguments like dir to image() no longer work properly
1 participant