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

Add support for string and float user properties in UDMF things #437

Merged
merged 2 commits into from Mar 24, 2018
Merged

Add support for string and float user properties in UDMF things #437

merged 2 commits into from Mar 24, 2018

Conversation

ghost
Copy link

@ghost ghost commented Mar 19, 2018

Previously the UDMF parser only accepted integer values for thing properties prefixed with "user_", even though strings and floats were supported in linedef/sidedef/sector properties. With this patch things support those extra types now too.

Test map: udmfusertest.zip

Copy link
Collaborator

@alexey-lysiuk alexey-lysiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Not sure about addition of PType::isString(), usually this check is written as var->Type == TypeString.

It will be great if you post about this PR in the corresponding topic or in Code submission subforum.

@ghost
Copy link
Author

ghost commented Mar 19, 2018

Corrected that, also added corresponding support for setting string vars in ACS. Updated test map:
udmfusertest.zip

Thanks for the feedback, I will be able to post on the forums later today.

@coelckers coelckers merged commit bd7791a into ZDoom:master Mar 24, 2018
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.

None yet

2 participants