1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-07-01 09:33:17 +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) if(conformal::on)
conformal::rotation++; conformal::rotation++;
else 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(sym == SDLK_PAGEDOWN) {
if(conformal::on) if(conformal::on)
conformal::rotation++; conformal::rotation++;
else 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) if(sym == SDLK_PAGEUP || sym == SDLK_PAGEDOWN)