1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

pageup/down spin 2x slower to make it possible to rotate by 90 degrees

This commit is contained in:
Zeno Rogue 2018-04-21 12:15:45 +02:00
parent 077231b071
commit b1382b0b34

View File

@ -253,13 +253,13 @@ void handlePanning(int sym, int uni) {
if(conformal::on)
conformal::rotation++;
else
View = spin(M_PI/S21*shiftmul) * View, didsomething = true;
View = spin(M_PI/S21/2*shiftmul) * View, didsomething = true;
}
if(sym == SDLK_PAGEDOWN) {
if(conformal::on)
conformal::rotation++;
else
View = spin(-M_PI/S21*shiftmul) * View, didsomething = true;
View = spin(-M_PI/S21/2*shiftmul) * View, didsomething = true;
}
if(sym == SDLK_PAGEUP || sym == SDLK_PAGEDOWN)