mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Fix compile failure if both MAKEANDPLAY and NO_CUSTOM_LEVELS are defined
I don't know why you would have to have both defined simultaneously, but now you can. The compile fail was caused by the fact that if both were defined, then there would be an expression like this in Map.cpp: switch (t) { case 0: } which is an invalid expression. The solution is to put 'case 0:' into the MAKEANDPLAY ifdef-guard as well.
This commit is contained in:
parent
4ace8d15be
commit
bf62233b60
1 changed files with 1 additions and 1 deletions
|
@ -1297,8 +1297,8 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
|
||||
switch(t)
|
||||
{
|
||||
case 0:
|
||||
#if !defined(MAKEANDPLAY)
|
||||
case 0:
|
||||
case 1: //World Map
|
||||
tileset = 1;
|
||||
extrarow = 1;
|
||||
|
|
Loading…
Reference in a new issue