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

Point in mapgen #32844

Merged
merged 2 commits into from
Aug 2, 2019
Merged

Point in mapgen #32844

merged 2 commits into from
Aug 2, 2019

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

My ongoing campaign to increase use of point and tripoint for type safety and code clarity.

Describe the solution

Refactor some mapgen code to use point more.

Add some point overloads to map member functions for this mapgen code to call.

Describe alternatives you've considered

I wondered whether the mapgen should really be calling the tripoint overloads of map::set, etc. But I didn't want to think about it too hard.

Additional context

Working towards #32017.

Also prevent some variable shadowing.  There's a lot of 'offset' values
here which can be rather confusing.  Hopefully it's all refactored
correctly.  No semantic change intended.
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 2, 2019
@ZhilkinSerg ZhilkinSerg merged commit 6eb48f2 into CleverRaven:master Aug 2, 2019
@jbytheway jbytheway deleted the point_in_mapgen branch August 2, 2019 14:35
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
* point overloads for map set functions

* Port a bunch of mapgen code to use points

Also prevent some variable shadowing.  There's a lot of 'offset' values
here which can be rather confusing.  Hopefully it's all refactored
correctly.  No semantic change intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants