mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-01 09:22:51 +00:00
rogueviz::fundamental::connections are no longer re-assigned when moving
This commit is contained in:
parent
fc12344754
commit
80f65fc0f8
@ -49,6 +49,9 @@ struct shapedata {
|
|||||||
map<cellwalker, int> corner_id;
|
map<cellwalker, int> corner_id;
|
||||||
cell *current_starter;
|
cell *current_starter;
|
||||||
|
|
||||||
|
vector<int> connections;
|
||||||
|
vector<bool> mirrored;
|
||||||
|
|
||||||
bool is_connected(cellwalker cw);
|
bool is_connected(cellwalker cw);
|
||||||
void be_connected(cellwalker cw);
|
void be_connected(cellwalker cw);
|
||||||
int group_count(cellwalker cw);
|
int group_count(cellwalker cw);
|
||||||
@ -272,6 +275,8 @@ void shapedata::compute_shape() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
find_corners();
|
find_corners();
|
||||||
|
connections.clear(); connections.resize(corners, -1);
|
||||||
|
mirrored.clear(); mirrored.resize(corners, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void shapedata::render() {
|
void shapedata::render() {
|
||||||
@ -284,8 +289,6 @@ void shapedata::render() {
|
|||||||
|
|
||||||
auto pos = current_position * last_view * inverse(View);
|
auto pos = current_position * last_view * inverse(View);
|
||||||
|
|
||||||
vector<int> connections(corners, -1);
|
|
||||||
vector<bool> mirrored(corners, false);
|
|
||||||
map<unsigned, int> midedge_id;
|
map<unsigned, int> midedge_id;
|
||||||
auto T = ggmatrix(starter);
|
auto T = ggmatrix(starter);
|
||||||
unsigned central_bucket = bucketer(unshift(T*C0));
|
unsigned central_bucket = bucketer(unshift(T*C0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user