mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
centerpc:: removed a special case for Euclidean -- no longer a special case
This commit is contained in:
parent
021f99aafa
commit
4f0cf57092
13
hypgraph.cpp
13
hypgraph.cpp
@ -1400,22 +1400,13 @@ EX void centerpc(ld aspd) {
|
|||||||
} */
|
} */
|
||||||
spinEdge(aspd);
|
spinEdge(aspd);
|
||||||
fixmatrix(View);
|
fixmatrix(View);
|
||||||
|
current_display->which_copy = gmatrix[cwt.at];
|
||||||
ors::rerotate(cwtV); ors::rerotate(View);
|
ors::rerotate(cwtV); ors::rerotate(View);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(euclid) {
|
|
||||||
// Euclidean
|
|
||||||
aspd *= (2+3*R*R);
|
|
||||||
if(aspd > R) aspd = R;
|
|
||||||
|
|
||||||
for(int i=0; i<GDIM; i++)
|
|
||||||
View[i][LDIM] -= H[i] * aspd / R;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
else {
|
||||||
aspd *= (1+R+(shmup::on?1:0));
|
aspd *= euclid ? (2+3*R*R) : (1+R+(shmup::on?1:0));
|
||||||
|
|
||||||
if(R < aspd)
|
if(R < aspd)
|
||||||
shift_view_to(H);
|
shift_view_to(H);
|
||||||
|
Loading…
Reference in New Issue
Block a user