Skip to content

wrong export if enum as flags have more than 30 values #3658

@ms502040

Description

@ms502040

Describe the bug
If add more than 30 values (31 or 32) to enum when checked "Allow multiple values" (act ass flags) exported to json values are wrong.
There is possible overflow on 30 bit.

Question
Why only 32 values if we have today 64 bit computers? Is there any masochist here who programs games on 32 bit windows? 😏

To Reproduce

  • create enum
  • check "Allow multiple values"
  • add 31 or 32 values
  • assign this enum to object
  • check some values
  • export to json
  • see exported file

Expected behavior
right export or unable to add more than 30 values as flags

Specifications:

  • OS: Windows 10
  • Tiled Version: 1.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBroken behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions