mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Add braces to case 12 custom level loading
I do this because we declare-and-initialize some variables in the case. This isn't strictly necessary, since there's no cross-initialization errors since it's the last case in the switch, but I'd just like to be future-proof.
This commit is contained in:
parent
71a989707e
commit
2646642664
1 changed files with 2 additions and 0 deletions
|
@ -1611,6 +1611,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
#endif
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
case 12: //Custom level
|
||||
{
|
||||
const int curlevel = rx-100 + (ry-100) * ed.maxwidth;
|
||||
const edlevelclass* room_ptr = NULL;
|
||||
if (!INBOUNDS_ARR(curlevel, ed.level))
|
||||
|
@ -1818,6 +1819,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
|
||||
//do the appear/remove roomname here
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
//The room's loaded: now we fill out damage blocks based on the tiles.
|
||||
|
|
Loading…
Reference in a new issue