1
0
Fork 0
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:
Misa 2020-04-15 17:52:25 -07:00 committed by Ethan Lee
parent 4ace8d15be
commit bf62233b60

View file

@ -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;