1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-03-09 07:15:18 +01:00

Unindent case labels in room tileset case-switch

Again, best practice is to put the case labels on the same indentation
level as the switch itself.
This commit is contained in:
Misa 2020-07-09 03:18:21 -07:00 committed by Ethan Lee
parent 01f6a97ed0
commit 2938db057b

View file

@ -1629,28 +1629,28 @@ void mapclass::loadlevel(int rx, int ry)
game.customcol=ed.getlevelcol(curlevel)+1; game.customcol=ed.getlevelcol(curlevel)+1;
obj.customplatformtile=game.customcol*12; obj.customplatformtile=game.customcol*12;
switch(room.tileset){ switch(room.tileset){
case 0: //Space Station case 0: //Space Station
tileset = 0; tileset = 0;
background = 1; background = 1;
break; break;
case 1: //Outside case 1: //Outside
tileset = 1; tileset = 1;
background = 1; background = 1;
break; break;
case 2: //Lab case 2: //Lab
tileset = 1; tileset = 1;
background = 2; background = 2;
graphics.rcol = room.tilecol; graphics.rcol = room.tilecol;
break; break;
case 3: //Warp Zone/intermission case 3: //Warp Zone/intermission
tileset = 1; tileset = 1;
background = 6; background = 6;
break; break;
case 4://Ship case 4://Ship
tileset = 1; tileset = 1;
background = 1; background = 1;
break; break;
default: default:
tileset = 1; tileset = 1;
background = 1; background = 1;
break; break;