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

Use u8 for RoomXY ranges #526

Merged
merged 3 commits into from
Aug 18, 2024
Merged

Conversation

shanemadden
Copy link
Collaborator

No description provided.

Copy link

@InfinityDevTech InfinityDevTech left a comment

Choose a reason for hiding this comment

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

This all looks good to me,

It made no sense to have it be a u32 to begin with, that distance could never be larger as the constructor for a RoomXY prevented it from ever being larger than 50.

The only thing I could ever see going wrong is if someone unsafely made a RoomXY over 50, but that is their fault if they used unchecked new.

@shanemadden shanemadden merged commit 1e09176 into rustyscreeps:main Aug 18, 2024
10 checks passed
@shanemadden shanemadden deleted the roomxy_u8_range branch August 18, 2024 05:15
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.

2 participants