Skip to content

The CellID can have leading zeros#4

Open
evenly-epic-mule wants to merge 1 commit intoNoctem:masterfrom
evenly-epic-mule:master
Open

The CellID can have leading zeros#4
evenly-epic-mule wants to merge 1 commit intoNoctem:masterfrom
evenly-epic-mule:master

Conversation

@evenly-epic-mule
Copy link

e.g. spawn_point_id 0x "4xxxxxxxxxx" = 0b0100 would be shifted by 21
while spawn_point_id 0x "8xxxxxxxxxx" = 0b1000 would be shifted by 20

cellid_to_location shouldn't do the shifting as it doesn't know the level

additionally monocle (currently only used in the WIP branch) should be updated so that spawnid_to_* will shift the spawnid << 20 before calling cellid_to_*

e.g.  spawn_point_id 0x "4xxxxxxxxxx" = 0b0100 would be shifted by 21
while spawn_point_id 0x "8xxxxxxxxxx" = 0b1000 would be shifted by 20

cellid_to_location shouldn't do the shifting as it doesn't know the level
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.

1 participant