1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-28 17:00:19 +00:00

rogueviz::fundamental::connections are no longer re-assigned when moving

This commit is contained in:
Zeno Rogue 2025-02-24 10:41:16 +01:00
parent fc12344754
commit 80f65fc0f8

View File

@ -49,6 +49,9 @@ struct shapedata {
map<cellwalker, int> corner_id;
cell *current_starter;
vector<int> connections;
vector<bool> mirrored;
bool is_connected(cellwalker cw);
void be_connected(cellwalker cw);
int group_count(cellwalker cw);
@ -272,6 +275,8 @@ void shapedata::compute_shape() {
}
find_corners();
connections.clear(); connections.resize(corners, -1);
mirrored.clear(); mirrored.resize(corners, false);
}
void shapedata::render() {
@ -284,8 +289,6 @@ void shapedata::render() {
auto pos = current_position * last_view * inverse(View);
vector<int> connections(corners, -1);
vector<bool> mirrored(corners, false);
map<unsigned, int> midedge_id;
auto T = ggmatrix(starter);
unsigned central_bucket = bucketer(unshift(T*C0));