Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up[RDY] Rollback recent spawn function changes in hardcoded mapgen #22898
Conversation
ZhilkinSerg
added some commits
Feb 7, 2018
This comment has been minimized.
This comment has been minimized.
|
I believe it would be better to properly fix #3951 while moving hard-coded mapgen to json. |
This comment has been minimized.
This comment has been minimized.
|
Not strictly related: I want to change Will it be correct to name defs like this? #def SUBMAP_WIDTH (SEEX * 2)
#def SUBMAP_MAX_X (SUBMAP_WIDTH - 1)
#def SUBMAP_HEIGHT (SEEY * 2)
#def SUBMAP_MAX_Y (SUBMAP_HEIGHT - 1)In other words: How do we call square with |
This comment has been minimized.
This comment has been minimized.
A submap contains lots of
|
This comment has been minimized.
This comment has been minimized.
|
Thanks, @BevapDin! So it is like this:
And I can probably go with this names: #def OMT_WIDTH (SEEX * 2)
#def OMT_MAX_X (OMT_WIDTH - 1)
#def OMT_HEIGHT (SEEY * 2)
#def OMT_MAX_Y (OMT_HEIGHT - 1)Edit: Also found #11880, so OMT_ could be bad name, but if that issue is addressed SEEX/SEEY will be doubled and SEEX * 2 will simply disappear from code. |
This comment has been minimized.
This comment has been minimized.
|
Can we prioritize a merge on this? The bug is pretty game-breaking |
This comment has been minimized.
This comment has been minimized.
|
There's a linked build here, for any players seeing this and wanting a quick fix: #22895 (comment) |
ZhilkinSerg commentedFeb 7, 2018
Fixes #22895.
What was changed
start_location.hleft intact);