1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-11 18:00:34 +00:00

fixed case fallthroughs in texture adjustment

This commit is contained in:
Zeno Rogue 2018-02-26 13:19:50 +01:00
parent 2eaddae6ee
commit 882c837f00

View File

@ -716,6 +716,7 @@ void mousemovement() {
} }
if(nonzero) lastmouse = mouseeu; if(nonzero) lastmouse = mouseeu;
newmove = false; newmove = false;
break;
} }
case tpsCell: { case tpsCell: {
@ -734,6 +735,7 @@ void mousemovement() {
edited_tinfo->triangles[i].tv = findTextureTriangle(c, si, i); edited_tinfo->triangles[i].tv = findTextureTriangle(c, si, i);
texture_tuned = true; texture_tuned = true;
} }
break;
} }
case tpsTriangle: { case tpsTriangle: {
@ -752,6 +754,7 @@ void mousemovement() {
edited_triangle->tv = findTextureTriangle(c, si, i); edited_triangle->tv = findTextureTriangle(c, si, i);
texture_tuned = true; texture_tuned = true;
} }
break;
} }
case tpsTune: { case tpsTune: {
@ -774,6 +777,7 @@ void mousemovement() {
*v = mouseh; *v = mouseh;
texture_tuned = true; texture_tuned = true;
} }
break;
} }
default: break; default: break;
@ -1119,7 +1123,7 @@ void showMenu() {
else if(uni == 'z' && tstate == tsAdjusting) panstate = tpsZoom; else if(uni == 'z' && tstate == tsAdjusting) panstate = tpsZoom;
else if(uni == 'p' && tstate == tsAdjusting) panstate = tpsProjection; else if(uni == 'p' && tstate == tsAdjusting) panstate = tpsProjection;
else if(uni == 'C' && tstate == tsAdjusting) panstate = tpsCell; else if(uni == 'C' && tstate == tsAdjusting) panstate = tpsCell;
else if(uni == 'T' && tstate == tsAdjusting) panstate = tpsTriangle; else if(uni == 'X' && tstate == tsAdjusting) panstate = tpsTriangle;
else if(uni == 'F' && tstate == tsAdjusting) panstate = tpsTune; else if(uni == 'F' && tstate == tsAdjusting) panstate = tpsTune;
else if(uni == 'A' && tstate == tsAdjusting) else if(uni == 'A' && tstate == tsAdjusting)
pushScreen(showMagicMenu); pushScreen(showMagicMenu);