mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +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);
|
||||
fixmatrix(View);
|
||||
current_display->which_copy = gmatrix[cwt.at];
|
||||
ors::rerotate(cwtV); ors::rerotate(View);
|
||||
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 {
|
||||
aspd *= (1+R+(shmup::on?1:0));
|
||||
aspd *= euclid ? (2+3*R*R) : (1+R+(shmup::on?1:0));
|
||||
|
||||
if(R < aspd)
|
||||
shift_view_to(H);
|
||||
|
Loading…
Reference in New Issue
Block a user